diff --git a/src/Makefile b/src/Makefile index 675990e..c2452a7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,9 +1,13 @@ GCC=gcc -WIN=x86_64-w64-mingw32-gcc +CFLAGS=-static -Ofast -fomit-frame-pointer -DIS_64BIT +WIN=x86_64-w64-mingw32-g++ +WINFLAGS=-static -Wall -fstrict-aliasing -fno-exceptions -fno-rtti -Wno-unused-variable -Wno-unused-result -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fPIC -fomit-frame-pointer all: ld -r -b binary -o toganet.o toganet.bin - $(GCC) -march=native -Ofast *.cpp ./nnue/*.cpp toganet.o -o toga3 -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 - $(GCC) -Ofast *.cpp ./nnue/*.cpp toganet.o -o toga3_avx2 -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 -# $(WIN) -Ofast *.cpp ./nnue/*.cpp toganet.o -o toga3.exe -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 + $(GCC) -march=native $(CFLAGS) *.cpp ./nnue/*.cpp toganet.o -o toga3 -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 + $(GCC) $(CFLAGS) *.cpp ./nnue/*.cpp toganet.o -o toga3_avx2 -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 + $(GCC) $(CFLAGS) *.cpp ./nnue/*.cpp toganet.o -o toga3_sse -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse + $(GCC) $(CFLAGS) *.cpp ./nnue/*.cpp toganet.o -o toga3_basic -lm -lpthread + $(WIN) $(WINFLAGS) -Ofast *.cpp ./nnue/*.cpp toganet.o -o toga3_avx2.exe -lm -lpthread -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DUSE_SSE -msse -DUSE_AVX2 -mavx2 diff --git a/src/main.cpp b/src/main.cpp index 1a2fddb..afe3be5 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char * argv[]) { util_init(); my_random_init(); // for opening book - printf("Toga III 0.1 UCI based on Fruit 2.1 by Jerry Donald Watson, Thomas Gaksch and Fabien Letouzey. \n"); + printf("Toga III 0.2 UCI based on Fruit 2.1 by Dietrich Kappe, Jerry Donald Watson, Thomas Gaksch and Fabien Letouzey. \n"); //printf("Code was based on Toga II 1.4.1SE by Thomas Gaksch (modified by Chris Formula), with bugfixes by Michel van den Bergh\n"); // early initialisation (the rest is done after UCI options are parsed in protocol.cpp)