DON Chess Engine

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

chessica
Posts: 1042
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

chessica wrote: Wed Jan 07, 2026 7:25 pm
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3-. DON-BMI2
3*. DON-BMI2-COMP
4-. DON-AVXVNNI
4*. DON-AVXVNNI-COMP
5-. DON-AVX512
5*. DON-AVX512-COMP

Thanks
It's difficult to say, because I didn't make a record.
Example: AVX2 --->>>g++ -o DON.exe benchmark.o bitboard.o engine.o evaluate.o main.o memory.o misc.o movegen.o movepick.o option.o perft.o polybook.o position.o search.o thread.o timeman.o tt.o uci.o tune.o full_threats.o half_ka_v2_hm.o accumulator.o network.o nmisc.o tablebase.o -fprofile-generate -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_PREFETCH -msse -DUSE_POPCNT -msse3 -mpopcnt -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto=full
lld: error: unknown argument: --no-as-needed
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: DON.exe] Error 1
make[2]: Leaving directory '/home/Privat/don/don/src'
make[1]: *** [Makefile:1138: clang-profile-make] Error 2
make[1]: Leaving directory '/home/Privat/don/don/src'
make: *** [Makefile:994: profile-build] Error 2
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 9:06 am
chessica wrote: Wed Jan 07, 2026 7:25 pm
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3-. DON-BMI2
3*. DON-BMI2-COMP
4-. DON-AVXVNNI
4*. DON-AVXVNNI-COMP
5-. DON-AVX512
5*. DON-AVX512-COMP

Thanks
It's difficult to say, because I didn't make a record.
Example: AVX2 --->>>g++ -o DON.exe benchmark.o bitboard.o engine.o evaluate.o main.o memory.o misc.o movegen.o movepick.o option.o perft.o polybook.o position.o search.o thread.o timeman.o tt.o uci.o tune.o full_threats.o half_ka_v2_hm.o accumulator.o network.o nmisc.o tablebase.o -fprofile-generate -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_PREFETCH -msse -DUSE_POPCNT -msse3 -mpopcnt -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto=full
lld: error: unknown argument: --no-as-needed
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: DON.exe] Error 1
make[2]: Leaving directory '/home/Privat/don/don/src'
make[1]: *** [Makefile:1138: clang-profile-make] Error 2
make[1]: Leaving directory '/home/Privat/don/don/src'
make: *** [Makefile:994: profile-build] Error 2
what make command you using ?

please give me the make command.

Thanks
chessica
Posts: 1042
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3. DON-BMI2
4. DON-BMI2-COMP
5. DON-AVXVNNI
6. DON-AVXVNNI-COMP
7. DON-AVX512
8. DON-AVX512-COMP

Thanks
I just downloaded the engines from the link shown...
1. DON-SSE4.1--->>> works
2. DON-AVX2 --->>> works
3. DON-BMI2--->>> works
4. DON-BMI2-COMP--->>> works
5. DON-AVXVNNI--->>> not working
6. DON-AVXVNNI-COMP--->>> not working
7. DON-AVX512--->>> not working
8. DON-AVX512-COMP--->>> not working
9. DON-SSSE3--->>> works


bench1
================
Total time [ms] : 3513
Total nodes : 2806075
nodes/second : 798768

bench2
================
Total time [ms] : 3232
Total nodes : 2806075
nodes/second : 868216


bench3
================
Total time [ms] : 3192
Total nodes : 2806075
nodes/second : 879096


bench4
================
Total time [ms] : 3209
Total nodes : 2806075
nodes/second : 874439

bench9
================
Total time [ms] : 3052
Total nodes : 2806075
nodes/second : 919421


Instructions sets MMX (+), SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4A, x86-64, AES, AVX, AVX2, AVX512F, FMA3, SHA
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 9:50 am
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3. DON-BMI2
4. DON-BMI2-COMP
5. DON-AVXVNNI
6. DON-AVXVNNI-COMP
7. DON-AVX512
8. DON-AVX512-COMP

Thanks
I just downloaded the engines from the link shown...
1. DON-SSE4.1--->>> works
2. DON-AVX2 --->>> works
3. DON-BMI2--->>> works
4. DON-BMI2-COMP--->>> works
5. DON-AVXVNNI--->>> not working
6. DON-AVXVNNI-COMP--->>> not working
7. DON-AVX512--->>> not working
8. DON-AVX512-COMP--->>> not working
9. DON-SSSE3--->>> works


bench1
================
Total time [ms] : 3513
Total nodes : 2806075
nodes/second : 798768

bench2
================
Total time [ms] : 3232
Total nodes : 2806075
nodes/second : 868216


bench3
================
Total time [ms] : 3192
Total nodes : 2806075
nodes/second : 879096


bench4
================
Total time [ms] : 3209
Total nodes : 2806075
nodes/second : 874439

bench9
================
Total time [ms] : 3052
Total nodes : 2806075
nodes/second : 919421


Instructions sets MMX (+), SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4A, x86-64, AES, AVX, AVX2, AVX512F, FMA3, SHA

I think your system not supports:
5. DON-AVXVNNI--->>> not working
6. DON-AVXVNNI-COMP--->>> not working
7. DON-AVX512--->>> not working
8. DON-AVX512-COMP--->>> not working

I am using
5. DON-AVXVNNI
6. DON-AVXVNNI-COMP

but on my system:
7. DON-AVX512--->>> not working
8. DON-AVX512-COMP--->>> not working

Thanks
Last edited by erashid on Thu Jan 08, 2026 10:09 am, edited 1 time in total.
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 9:06 am
chessica wrote: Wed Jan 07, 2026 7:25 pm
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3-. DON-BMI2
3*. DON-BMI2-COMP
4-. DON-AVXVNNI
4*. DON-AVXVNNI-COMP
5-. DON-AVX512
5*. DON-AVX512-COMP

Thanks
It's difficult to say, because I didn't make a record.
Example: AVX2 --->>>g++ -o DON.exe benchmark.o bitboard.o engine.o evaluate.o main.o memory.o misc.o movegen.o movepick.o option.o perft.o polybook.o position.o search.o thread.o timeman.o tt.o uci.o tune.o full_threats.o half_ka_v2_hm.o accumulator.o network.o nmisc.o tablebase.o -fprofile-generate -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_PREFETCH -msse -DUSE_POPCNT -msse3 -mpopcnt -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto=full
lld: error: unknown argument: --no-as-needed
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: DON.exe] Error 1
make[2]: Leaving directory '/home/Privat/don/don/src'
make[1]: *** [Makefile:1138: clang-profile-make] Error 2
make[1]: Leaving directory '/home/Privat/don/don/src'
make: *** [Makefile:994: profile-build] Error 2
I have fix the make file for the above error:

Now try the latest code:

it will compile.

Thanks
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 9:06 am
chessica wrote: Wed Jan 07, 2026 7:25 pm
erashid wrote: Wed Jan 07, 2026 7:22 pm
chessica wrote: Wed Jan 07, 2026 5:48 pm All builds are faulty and don't work for me, except for ssse3.
which one you are using ?

1. DON-SSE4.1
2. DON-AVX2
3-. DON-BMI2
3*. DON-BMI2-COMP
4-. DON-AVXVNNI
4*. DON-AVXVNNI-COMP
5-. DON-AVX512
5*. DON-AVX512-COMP

Thanks
It's difficult to say, because I didn't make a record.
Example: AVX2 --->>>g++ -o DON.exe benchmark.o bitboard.o engine.o evaluate.o main.o memory.o misc.o movegen.o movepick.o option.o perft.o polybook.o position.o search.o thread.o timeman.o tt.o uci.o tune.o full_threats.o half_ka_v2_hm.o accumulator.o network.o nmisc.o tablebase.o -fprofile-generate -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -fprofile-generate -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_PREFETCH -msse -DUSE_POPCNT -msse3 -mpopcnt -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto=full
lld: error: unknown argument: --no-as-needed
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: DON.exe] Error 1
make[2]: Leaving directory '/home/Privat/don/don/src'
make[1]: *** [Makefile:1138: clang-profile-make] Error 2
make[1]: Leaving directory '/home/Privat/don/don/src'
make: *** [Makefile:994: profile-build] Error 2
Get latest from link:
https://github.com/ehsanrashid/DON

It will compile. and please confirm if ok.

Thanks
chessica
Posts: 1042
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
make clean is ok..

run make clean

Thanks
chessica
Posts: 1042
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: DON Chess Engine

Post by chessica »

erashid wrote: Thu Jan 08, 2026 10:32 am
chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
make clean is ok.. --->>> That doesn't answer my question. Again, what did you change?

run make clean --->>> It's inconvenient to have to type that in manually every time...

Thanks
erashid
Posts: 198
Joined: Sun Oct 20, 2013 8:40 pm
Full name: Ehsan Rashid

Re: DON Chess Engine

Post by erashid »

chessica wrote: Thu Jan 08, 2026 10:26 am What did you change? Just the makefile? What also bothers me are the .o files that weren't removed after compiling. A `make clean` command is probably missing from the makefile.
i changed this: line# 477

# Add --no-as-needed ONLY if using GNU ld (not lld, not Darwin)
ifneq ($(KERNEL), Darwin)
ifeq ($(shell $(CXX) -Wl,--version 2>/dev/null | grep -iq "GNU ld" && echo yes), yes)
LDFLAGS += -Wl,--no-as-needed
endif
endif