Stockfisch NNUE macOS binary requested

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Steppenwolf
Posts: 62
Joined: Thu Jan 31, 2019 3:54 pm
Full name: Sven Steppenwolf

Stockfisch NNUE macOS binary requested

Post by Steppenwolf » Sat Jul 25, 2020 12:48 pm

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: 847
Joined: Wed Apr 21, 2010 2:58 am
Location: Australia
Full name: Nguyen Hong Pham
Contact:

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen » Sat Jul 25, 2020 1:44 pm

Steppenwolf wrote:
Sat Jul 25, 2020 12: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
A freeware chess GUI, based on opensource Banksia - the chess tournament manager

Steppenwolf
Posts: 62
Joined: Thu Jan 31, 2019 3:54 pm
Full name: Sven Steppenwolf

Re: Stockfisch NNUE macOS binary requested

Post by Steppenwolf » Sat Jul 25, 2020 2:59 pm

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: 847
Joined: Wed Apr 21, 2010 2:58 am
Location: Australia
Full name: Nguyen Hong Pham
Contact:

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen » Mon Jul 27, 2020 9: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/
https://banksiagui.com
A freeware chess GUI, based on opensource Banksia - the chess tournament manager

zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil » Mon Jul 27, 2020 9:43 am

phhnguyen wrote:
Sat Jul 25, 2020 1:44 pm
Steppenwolf wrote:
Sat Jul 25, 2020 12: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: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil » Mon Jul 27, 2020 9:47 am

phhnguyen wrote:
Mon Jul 27, 2020 9: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: 847
Joined: Wed Apr 21, 2010 2:58 am
Location: Australia
Full name: Nguyen Hong Pham
Contact:

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen » Mon Jul 27, 2020 11:13 am

zullil wrote:
Mon Jul 27, 2020 9:43 am
phhnguyen wrote:
Sat Jul 25, 2020 1:44 pm
Steppenwolf wrote:
Sat Jul 25, 2020 12: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
A freeware chess GUI, based on opensource Banksia - the chess tournament manager

zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfisch NNUE macOS binary requested

Post by zullil » Mon Jul 27, 2020 11:47 am

phhnguyen wrote:
Mon Jul 27, 2020 11:13 am
zullil wrote:
Mon Jul 27, 2020 9:43 am
phhnguyen wrote:
Sat Jul 25, 2020 1:44 pm
Steppenwolf wrote:
Sat Jul 25, 2020 12: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: 847
Joined: Wed Apr 21, 2010 2:58 am
Location: Australia
Full name: Nguyen Hong Pham
Contact:

Re: Stockfisch NNUE macOS binary requested

Post by phhnguyen » Mon Jul 27, 2020 12:07 pm

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
A freeware chess GUI, based on opensource Banksia - the chess tournament manager

Steppenwolf
Posts: 62
Joined: Thu Jan 31, 2019 3:54 pm
Full name: Sven Steppenwolf

Re: Stockfisch NNUE macOS binary requested

Post by Steppenwolf » Fri Jul 31, 2020 11:14 am

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.

Post Reply