New J.A Compiles

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

Moderators: hgm, Rebel, chrisw

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

Re: New J.A Compiles

Post by chessica »

All engines with NNUE by default need at least sse4 and usually avx2 as well.
Jim.
[/quote]

Oh, no. My CPU is an ATHLON II X4 and has no sse4. Stockfish is working well.
chessica
Posts: 672
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: New J.A Compiles

Post by chessica »

Jim Ablett wrote: Thu May 16, 2024 11:35 am

Code: Select all

In file included from simde.h:29,
from simd.cpp:33:
simd.cpp: In function 'void simd_linear_forward(uint8_t*, int32_t*, int, int, int32_t*, int8_t*)':
./simde/avx2.h:28691:56: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
28691 | #define _mm256_set1_epi16(a) simde_mm256_set1_epi16(a)
| ^
simd.cpp:91:17: note: in expansion of macro '_mm256_set1_epi16'
91 | int256 c1 = _mm256_set1_epi16(1);
| ^~~~~~~~~~~~~~~~~
That warning maybe a problem but I think it can be ignored. It's warning that '-mavx2' isn't enabled.
AVX2 instructions are being emulated with sse instructions.

All engines with NNUE by default need at least sse4 and usually avx2 as well. These need to be emulated for a cpu without
these instructions. I used the the libraries here > https://github.com/simd-everywhere/simde

Jim.
Hi, Jim it works now...

~/Desktop/src $ make
x86_64-w64-mingw32-g++ -o toga_IV_11_nnue *.cpp -Ofast \
-march=native -mtune=native -flto -static -static-libgcc -static-libstdc++ -DNDEBUG \
-std=c++11 -Wno-parentheses -Wno-format -Wno-format-extra-args -Wno-odr
In file included from simde.h:29,
from simd.cpp:33:
simd.cpp: In function 'void simd_linear_forward(uint8_t*, int32_t*, int, int, int32_t*, int8_t*)':
./simde/avx2.h:28691:56: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
28691 | #define _mm256_set1_epi16(a) simde_mm256_set1_epi16(
)
|
^
simd.cpp:91:17: note: in expansion of macro '_mm256_set1_epi16' 91 | int256 c1 = _mm256_set1_epi16(1);
| ^~~~~~~~~~~~~~~~~
lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper.exe: note: see the '-flto' option documentation for more information
# -msse2 -msse3 -msse4.1 -msse4.2 -mbmi -mfma -mavx2 -mbmi2 -mavx -mbmi < avx/bmi2 enable
# -fprofile-generate -fprofile-correction < before -o
# set macros in 'simd.cpp'
~/Desktop/src $

[d]5k2/pp3N2/5K2/5B2/8/8/8/8 w - - 0 1
#9

Toga_IV_11_nnue_64_ja_sse3:

1/1 00:00,000 2 11 +1,84 Lf5-b1
1/1 00:00,000 3 14 +2,11 Lf5-c2
1/1 00:00,000 9 41 +2,18 Lf5-g6
1/4 00:00,000 27 115 +2,36 Sf7-e5
1/4 00:00,000 28 112 +2,60 Sf7-g5
1/4 00:00,000 32 120 +2,78 Sf7-h8
2/6 00:00,000 46 173 +1,67 Sf7-h8 Kf8-e8
2/6 00:00,000 65 232 +1,76 Sf7-g5 Kf8-e8
2/6 00:00,000 83 280 +2,00 Sf7-d8 Kf8-e8 Sd8xb7
2/10 00:00,016 223 14k +2,87 Sf7-d6 b7-b6 Sd6-e4
3/12 00:00,031 778 25k +2,84 Sf7-d6 b7-b5 Lf5-e6 b5-b4 Sd6-b7
4/14 00:00,094 3k 27k +3,26 Sf7-d6 a7-a5 Sd6xb7 a5-a4 Sb7-c5 a4-a3 Sc5-d7+ Kf8-e8 Lf5-e6
5/16 00:00,172 4k 26k +3,24 Sf7-d6 a7-a5 Sd6-b5 Kf8-e8 Sb5-a3 Ke8-d8
6/16 00:00,234 6k 26k +3,20 Sf7-d6 a7-a5 Sd6-b5 Kf8-e8 Sb5-a3 a5-a4 Lf5-h3 Ke8-d8
7/16- 00:00,531 14k 26k +3,04 Sf7-d6 a7-a5 Sd6-b5 Kf8-e8 Sb5-c7+ Ke8-d8 Sc7-e6+ Kd8-c8 Se6-d4+ Kc8-c7 Sd4-b3
7/16 00:00,578 15k 26k +3,28 Sf7-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5-d7 a7-a5 Sf7-g5 a5-a4 Sg5-h7+ Kf8-g8 Kf6-g6 a4-a3 Ld7-e6+ Kg8-h8 Sh7-f8 a3-a2 Le6xa2 b7-b6
24/38+ 01:13,031 2.088k 29k +M19 Lf5-d7 Kf8-g8 Sf7-g5 Kg8-h8 Ld7-f5 Kh8-g8 Lf5-g6 b7-b6 Lg6-f5 Kg8-f8 Lf5-d7
25/38+ 01:13,031 2.088k 29k +M19 Lf5-d7 Kf8-g8
26/38+ 01:13,031 2.088k 29k +M19 Lf5-d7 Kf8-g8
27/38+ 01:13,031 2.088k 29k +M19 Lf5-d7 Kf8-g8
28/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
29/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
30/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
31/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
32/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
33/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
34/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
35/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
36/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
37/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
38/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
39/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
40/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
41/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
42/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
43/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
44/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
45/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
46/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
47/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
48/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
49/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
50/38+ 01:13,047 2.088k 29k +M19 Lf5-d7 Kf8-g8
51/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
52/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
53/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
54/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
55/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
56/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
57/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
58/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
59/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
60/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
61/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
62/38+ 01:13,047 2.089k 29k +M19 Lf5-d7 Kf8-g8
63/38+ 01:13,281 2.089k 29k +M19 Lf5-d7 Kf8-g8
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

That great. :) Glad you were able to compile a working executable.
I've ordered a little mini pc with an sse3 cpu so I can compile and test properly.

Jim.
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Image
Uralochka v3.41a by Ivan Maklyakov
https://gitlab.com/freemanzlat/uralochka3

Uralochka v3.41a 64 ja

Windows & Linux builds

https://drive.proton.me/urls/X3ZT2CEYWR#qpTN02G6aLns

Jim.
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Image
Twisted Logic v20100815 by Edsel Apostol

An oldie but goodie from 2010.

New clang profiled compiles for Windows/Linux/Android

https://drive.proton.me/urls/YPQQ1BP350#D4v8IPWMn62D

Jim.
Elorejano
Posts: 103
Joined: Sat Mar 20, 2010 3:31 am

Re: New J.A Compiles

Post by Elorejano »

Hi Jim! Could you add NNUE to some "dead projects" like Protector (derived from Toga) or Gull?
Like Toga nnue.
Ideed, to other oldie engines

Regards and keep your fantastic job
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Elorejano wrote: Tue May 21, 2024 7:32 pm Hi Jim! Could you add NNUE to some "dead projects" like Protector (derived from Toga) or Gull?
Like Toga nnue.
Ideed, to other oldie engines

Regards and keep your fantastic job

Hi Elorejano,

It will be something I will look into if I get time.

Jim.
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Image
Igel v3.5.5 by V. Shcherbyna (Igel author 2018-2023), V. Medvedev (GreKo author 2002-2018)
https://github.com/vshcherbyna/igel

Not a new release, but new builds.

Igel v3.5.5 64 ja

Windows/Linux & Android compiles

https://drive.proton.me/urls/SHWK37DET8#lBAbqaa7clKc

Jim.
User avatar
jshriver
Posts: 1349
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Re: New J.A Compiles

Post by jshriver »

Thank you for your years, heck decades of work. You always make the best compiles.
User avatar
Jim Ablett
Posts: 1486
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

jshriver wrote: Fri May 24, 2024 11:41 pm Thank you for your years, heck decades of work. You always make the best compiles.
Cheers Josh. Thanks for the kind words. :)

Jim.