-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ddugovic/master' into ddugovic
- Loading branch information
Showing
28 changed files
with
1,945 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
os: Visual Studio 2013 | ||
|
||
clone_folder: C:\projects\Stockfish | ||
shallow_clone: true | ||
clone_depth: 1 | ||
|
||
platform: x64 | ||
|
||
cache: | ||
- x86_64-4.9.2-release-posix-seh-rt_v4-rev2.7z | ||
|
||
install: | ||
- cinst wget | ||
- wget --no-clobber "http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/4.9.2/threads-posix/seh/x86_64-4.9.2-release-posix-seh-rt_v4-rev2.7z" | ||
- 7z x -oC:\MinGW\msys\1.0\ x86_64-4.9.2-release-posix-seh-rt_v4-rev2.7z > nul | ||
|
||
build_script: | ||
- C:\MinGW\msys\1.0\bin\sh.exe -c "cd /c/projects/Stockfish/; /c/projects/Stockfish/deploy/msys.sh" | ||
|
||
artifacts: | ||
- path: '*\stockfish-windows-*' | ||
|
||
deploy: | ||
- provider: S3 | ||
access_key_id: | ||
secure: 1BWB8sb0ecF9242HMlKH54uFCn9GtjhxeaysqbVVDG4= | ||
secret_access_key: | ||
secure: l+Z1nugPzeV5fviFeckmfjjpvz7vfoALSMDt40Se77enlblgsr0/+/MrHQ+PMx/a | ||
bucket: variant-stockfish | ||
region: us-west-2 | ||
set_public: true | ||
folder: ddugovic | ||
artifact: /stockfish-windows-.*/ | ||
- provider: GitHub | ||
release: $(APPVEYOR_REPO_TAG_NAME) | ||
description: 'Multi-variant Stockfish binaries' | ||
auth_token: | ||
secure: HM1uS+Vhume4hO4gY5Ev8XU8rurfeviKBNbfu3xOrl3zWnKcsdAzkNA2JExElSAM | ||
artifact: /stockfish-windows-.*/ | ||
draft: false | ||
prerelease: false | ||
on: | ||
appveyor_repo_tag: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh -e | ||
|
||
cd src | ||
|
||
echo | ||
echo "### Linker info" | ||
echo | ||
ldd --version || echo "no ldd" | ||
|
||
echo | ||
echo "### CPU capabilities" | ||
echo | ||
grep "^flags" /proc/cpuinfo || echo | ||
|
||
echo | ||
echo "### Running profile-build for x86-64 ..." | ||
echo | ||
make clean | ||
make profile-build ARCH=x86-64 EXE=stockfish-x86_64 | ||
|
||
if [ -f /proc/cpuinfo ]; then | ||
make clean | ||
if grep "^flags" /proc/cpuinfo | grep -q popcnt ; then | ||
echo | ||
echo "### Running profile-build for x86-64-modern ..." | ||
echo | ||
make profile-build ARCH=x86-64-modern EXE=stockfish-x86_64-modern | ||
else | ||
echo | ||
echo "### Running build for x86-64-modern ..." | ||
echo | ||
make build ARCH=x86-64-modern EXE=stockfish-x86_64-modern | ||
fi | ||
|
||
make clean | ||
if grep "^flags" /proc/cpuinfo | grep popcnt | grep -q bmi2 ; then | ||
echo | ||
echo "### Running profile-build for x86-64-bmi2 ..." | ||
echo | ||
make profile-build ARCH=x86-64-bmi2 EXE=stockfish-x86_64-bmi2 | ||
else | ||
echo | ||
echo "### Running build for x86-64-bmi2 ..." | ||
echo | ||
make build ARCH=x86-64-bmi2 EXE=stockfish-x86_64-bmi2 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
export PATH=.:/mingw64/bin:/usr/local/bin:/mingw/bin:/bin | ||
export | ||
mkdir "$APPVEYOR_REPO_BRANCH" | ||
|
||
cd src | ||
|
||
make clean | ||
make profile-build COMP=mingw ARCH=x86-64 | ||
strip stockfish.exe | ||
mv stockfish.exe "../$APPVEYOR_REPO_BRANCH/stockfish-windows-x86_64.exe" | ||
|
||
make clean | ||
make profile-build COMP=mingw ARCH=x86-64-modern | ||
strip stockfish.exe | ||
mv stockfish.exe "../$APPVEYOR_REPO_BRANCH/stockfish-windows-x86_64-modern.exe" | ||
|
||
make clean | ||
make profile-build COMP=mingw ARCH=x86-64-bmi2 | ||
strip stockfish.exe | ||
mv stockfish.exe "../$APPVEYOR_REPO_BRANCH/stockfish-windows-x86_64-bmi2.exe" | ||
|
||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/thread.h b/src/thread.h | ||
index 3aa5bb51..ac72d15d 100644 | ||
--- a/src/thread.h | ||
+++ b/src/thread.h | ||
@@ -84,7 +84,7 @@ public: | ||
|
||
struct MainThread : public Thread { | ||
|
||
- using Thread::Thread; | ||
+ explicit MainThread(size_t n) : Thread(n) { } | ||
|
||
void search() override; | ||
void check_time(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM debian:wheezy | ||
RUN apt-get update && apt-get install -y make g++ | ||
VOLUME /home/builder/Stockfish | ||
WORKDIR /home/builder/Stockfish | ||
RUN groupadd -r builder && useradd -r -g builder builder | ||
USER builder | ||
CMD ./deploy/linux.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.