Stockfisch NNUE macOS binary requested

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

Moderators: hgm, Rebel, chrisw

Steppenwolf
Posts: 75
Joined: Thu Jan 31, 2019 4:54 pm
Full name: Sven Steppenwolf

Stockfisch NNUE macOS binary requested

Post by Steppenwolf »

Is there anybody who can provide us with the mac binary of SF NNUE or describe how to build?
Thanks in Advance!
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen »

Steppenwolf wrote: Sat Jul 25, 2020 2:48 pm Is there anybody who can provide us with the mac binary of SF NNUE or describe how to build?
Thanks in Advance!
You can build it with all “standard” steps for Stockfish (see Official-Stockfish README):

Code: Select all

    cd src
    make help
    make build ARCH=x86-64-modern
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
Steppenwolf
Posts: 75
Joined: Thu Jan 31, 2019 4:54 pm
Full name: Sven Steppenwolf

Re: Stockfisch NNUE macOS binary requested

Post by Steppenwolf »

Thanks for your help, but sorry it did not work, maybe I am not that programming expert :(

please can you upload one binary with a NN, which is working under Catalina?

Thanks for your help!
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen »

OK, you may download with the below link, all code is updated and compiled today. There are two binaries, one is standard (nnue) and one for avx. I have just done a quick test only. Will check and update later.

https://banksiagui.com/download/downloa ... fish-nnue/
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil »

phhnguyen wrote: Sat Jul 25, 2020 3:44 pm
Steppenwolf wrote: Sat Jul 25, 2020 2:48 pm Is there anybody who can provide us with the mac binary of SF NNUE or describe how to build?
Thanks in Advance!
You can build it with all “standard” steps for Stockfish (see Official-Stockfish README):

Code: Select all

    cd src
    make help
    make build ARCH=x86-64-modern
No advice can be better than wrong advice.

The last step is wrong (in two ways), at least for all the Sf-nnue Makefiles I have seen. Instead, try

Code: Select all

make nnue ARCH=x86-64
Or replace x86-64 with an appropriate choice from the list below.

Code: Select all

Supported archs:

x86-64-avx512           > x86 64-bit with avx512 support
x86-64-bmi2             > x86 64-bit with bmi2 support
x86-64-avx2             > x86 64-bit with avx2 support
x86-64-sse42            > x86 64-bit with sse42 support
x86-64-sse41            > x86 64-bit with sse41 support
x86-64-ssse3            > x86 64-bit with ssse3 support
x86-64-sse3             > x86 64-bit with ssse3 support
x86-64                  > x86 64-bit generic
x86-32                  > x86 32-bit (also enables SSE)
x86-32-old              > x86 32-bit fall back for old hardware
ppc-64                  > PPC 64-bit
ppc-32                  > PPC 32-bit
armv7                   > ARMv7 32-bit
armv8                   > ARMv8 64-bit
general-64              > unspecified 64-bit
general-32              > unspecified 32-bit
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil »

phhnguyen wrote: Mon Jul 27, 2020 11:25 am OK, you may download with the below link, all code is updated and compiled today. There are two binaries, one is standard (nnue) and one for avx. I have just done a quick test only. Will check and update later.

https://banksiagui.com/download/downloa ... fish-nnue/
If you built this using the steps above, you likely have produced standard Stockfish. :D

Take a close look at what's in the Makefile.
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen »

zullil wrote: Mon Jul 27, 2020 11:43 am
phhnguyen wrote: Sat Jul 25, 2020 3:44 pm
Steppenwolf wrote: Sat Jul 25, 2020 2:48 pm Is there anybody who can provide us with the mac binary of SF NNUE or describe how to build?
Thanks in Advance!
You can build it with all “standard” steps for Stockfish (see Official-Stockfish README):

Code: Select all

    cd src
    make help
    make build ARCH=x86-64-modern
No advice can be better than wrong advice.

The last step is wrong (in two ways), at least for all the Sf-nnue Makefiles I have seen. Instead, try

Code: Select all

make nnue ARCH=x86-64
Or replace x86-64 with an appropriate choice from the list below.

Code: Select all

Supported archs:

x86-64-avx512           > x86 64-bit with avx512 support
x86-64-bmi2             > x86 64-bit with bmi2 support
x86-64-avx2             > x86 64-bit with avx2 support
x86-64-sse42            > x86 64-bit with sse42 support
x86-64-sse41            > x86 64-bit with sse41 support
x86-64-ssse3            > x86 64-bit with ssse3 support
x86-64-sse3             > x86 64-bit with ssse3 support
x86-64                  > x86 64-bit generic
x86-32                  > x86 32-bit (also enables SSE)
x86-32-old              > x86 32-bit fall back for old hardware
ppc-64                  > PPC 64-bit
ppc-32                  > PPC 32-bit
armv7                   > ARMv7 32-bit
armv8                   > ARMv8 64-bit
general-64              > unspecified 64-bit
general-32              > unspecified 32-bit
lol. You are right if you mentioned about nodchip repository!!!

However, do you know his work has merged already to official-Stockfish and the way to compile is just simple as I suggested?

If you can run my compiled binaries, the UCI options have already a special one to set eval file which is not in standard Stockfish :D
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil »

phhnguyen wrote: Mon Jul 27, 2020 1:13 pm
zullil wrote: Mon Jul 27, 2020 11:43 am
phhnguyen wrote: Sat Jul 25, 2020 3:44 pm
Steppenwolf wrote: Sat Jul 25, 2020 2:48 pm Is there anybody who can provide us with the mac binary of SF NNUE or describe how to build?
Thanks in Advance!
You can build it with all “standard” steps for Stockfish (see Official-Stockfish README):

Code: Select all

    cd src
    make help
    make build ARCH=x86-64-modern
No advice can be better than wrong advice.

The last step is wrong (in two ways), at least for all the Sf-nnue Makefiles I have seen. Instead, try

Code: Select all

make nnue ARCH=x86-64
Or replace x86-64 with an appropriate choice from the list below.

Code: Select all

Supported archs:

x86-64-avx512           > x86 64-bit with avx512 support
x86-64-bmi2             > x86 64-bit with bmi2 support
x86-64-avx2             > x86 64-bit with avx2 support
x86-64-sse42            > x86 64-bit with sse42 support
x86-64-sse41            > x86 64-bit with sse41 support
x86-64-ssse3            > x86 64-bit with ssse3 support
x86-64-sse3             > x86 64-bit with ssse3 support
x86-64                  > x86 64-bit generic
x86-32                  > x86 32-bit (also enables SSE)
x86-32-old              > x86 32-bit fall back for old hardware
ppc-64                  > PPC 64-bit
ppc-32                  > PPC 32-bit
armv7                   > ARMv7 32-bit
armv8                   > ARMv8 64-bit
general-64              > unspecified 64-bit
general-32              > unspecified 32-bit
lol. You are right if you mentioned about nodchip repository!!!

However, do you know his work has merged already to official-Stockfish and the way to compile is just simple as I suggested?

If you can run my compiled binaries, the UCI options have already a special one to set eval file which is not in standard Stockfish :D
No merge has occurred yet. But there is a branch: https://github.com/official-stockfish/S ... player-wip

For that, your instructions are correct. My apology.

Note that such a build is only for playing. All the learning/net generation code has been removed.
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen »

Not any problem at all! We all work for chess hobbies :)

I have been on/off, not much time for sf-nnue, but seen there are some PRs (about NNUE) waiting for merging. Don’t know which functions are missing for the current code but look like new things coming so soon.
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
Steppenwolf
Posts: 75
Joined: Thu Jan 31, 2019 4:54 pm
Full name: Sven Steppenwolf

Re: Stockfisch NNUE macOS binary requested

Post by Steppenwolf »

Dear phhnguyen,

thanks for your Compile. It Works Great! :D
It would be very good that after a merging (https://github.com/official-stockfish/S ... ssues/2823) of SF with SF NNUE a mac binary is also available to the Community regularely.