-
-
Save ppigazzini/ea50f1afe1c1bd86c48daa2eff53138b to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
build_bench (){ | |
local nopgo= | |
local comp=mingw | |
local iter=30 | |
if [ $comp == 'mingw' ]; then | |
local exe=.exe | |
else | |
local exe= | |
fi | |
wget $1$2.zip | |
unzip $2.zip | |
cd Stockfish-$2/src | |
make clean; make profile-build ARCH=x86-64-modern COMP=$comp -j 8 | |
strip stockfish$exe | |
mv stockfish$exe ../../stockfish-$3$nopgo$exe | |
make clean | |
cd ../.. | |
rm -rf $2.zip Stockfish-$2 | |
if [ $3 != 'master' ]; then | |
echo "bash ./bench-parallel.sh ./stockfish-$3$nopgo$exe ./stockfish-master$nopgo$exe $iter" | tee speedup-$3$nopgo.txt | |
bash ./bench-parallel.sh ./stockfish-$3$nopgo$exe ./stockfish-master$nopgo$exe $iter >> speedup-$3$nopgo.txt | |
mv stockfish-$3$nopgo$exe stockfish-$3$nopgo-done$exe | |
fi | |
} | |
# master | |
repo=https://github.com/mcostalba/Stockfish/archive/ | |
hash=ecd3218b6b24bb54509dbe6e9b24517b7df7390d | |
name=master | |
build_bench $repo $hash $name | |
# slowdown s10 | |
repo=https://github.com/mcostalba/Stockfish/archive/ | |
hash=0564ecd64912d23349af8fedef5b2623c21c0342 | |
name=s10-630 | |
build_bench $repo $hash $name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment