How to install the Stockfish NNUE engine into Hiarcs UCI

Get your specific HIARCS/Junior support questions answered here as well as up-to-the-minute news!

Moderators: Watchman, Mark Uniacke, mrudolf

mikebore
Member
Posts: 10
Joined: Sat Jan 05, 2008 7:40 pm

Stockfish configuration settings?

Post by mikebore »

Thanks for a great thread, especially Mr Rudolf.

I have got Stockfish 13 installed and working, but not sure I have configured it correctly in HCE.

I notice that the four cores of my iMac CPU are around 40% in analysis mode, but Deep HIARCS 24 engine pushes all four cores to 100%.

What should the Stockfish engine Configuration settings be?

Thanks very much
User avatar
mrudolf
HCE Developer
Posts: 988
Joined: Thu Dec 17, 2020 4:44 pm

Re: Stockfish configuration settings?

Post by mrudolf »

mikebore wrote:I have got Stockfish 13 installed and working, but not sure I have configured it correctly in HCE.
I notice that the four cores of my iMac CPU are around 40% in analysis mode, but Deep HIARCS 24 engine pushes all four cores to 100%.
What should the Stockfish engine Configuration settings be?
Thanks very much
Did you check Treads value? As far as I remember, Stockfish defaults to using only 1 thread.
mikebore
Member
Posts: 10
Joined: Sat Jan 05, 2008 7:40 pm

Post by mikebore »

That was it! Thanks again.

I have just managed to repeat the process on my M1 MacBook Air, but there were some differences.

At the end of the Homebrew install it said:

==> Next steps:
- Add Homebrew to your PATH in /Users/michaelb/.zprofile:
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/michaelb/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)


I ran those commands, and then brew install Stockfish

After that it gave:

==> Pouring stockfish-13.arm64_big_sur.bottle.tar.gz
/opt/homebrew/Library/Homebrew/download_strategy.rb:94: warning: conflicting chdir during another chdir block
🍺 /opt/homebrew/Cellar/stockfish/13: 6 files, 20.6MB


So in HCE I had to add it from /opt/homebrew/Cellar/

Thanks again
Zio
Posts: 1
Joined: Wed Jan 12, 2022 7:20 am

Re: How to install the Stockfish NNUE engine into Hiarcs UCI

Post by Zio »

What if you don't have HCE downloaded? I just want to use Stockfish for testing, do I really need to download HCE? I already have it installed in Homebrew.
qbsyr
Posts: 1
Joined: Wed Jan 25, 2023 6:10 pm

Re: How to install the Stockfish NNUE engine into Hiarcs UCI

Post by qbsyr »

I am trying to install Stockfish 15.1 into HIARCS CE Pro (1.1.2 Premium) on a MacBook Air (M2, 2022) running Ventura 13.2.1.

I have successfully installed Homebrew and executed the command: brew install stockfish.

Next, opened HCE, went to preferences/Engines, and selected Add (+)
I then typed Cmd+Shift+G, entered path: /usr/local/bin and pressed Return key but no luck.

I read below where mikebore wrote that we might need to do another step, namely:
==> Next steps:
- Add Homebrew to your PATH in /Users/michaelb/.zprofile:

My question is: What command do I use to add homebrew to my PATH? (I am completely unsure about how to use Terminal)

Thank you for anyone in the know about how to do this, or
EloDeficit
Member
Posts: 116
Joined: Thu Nov 03, 2016 10:04 pm

Re: How to install the Stockfish NNUE engine into Hiarcs UCI

Post by EloDeficit »

Hi gbsyr:

On my system (macOS Ventura) HomeBrew installed Stockfish 15.1 in the /opt/homebrew/Cellar/stockfish/15.1/bin directory.

You can navigate to that directory by pressing cmd-shift-G when the add engine open file dialog is active.

HTH.
JGFMK
Member
Posts: 3
Joined: Tue Mar 12, 2024 4:24 pm

Re: How to install the Stockfish NNUE engine into Hiarcs UCI

Post by JGFMK »

/opt/homebrew/Cellar/stockfish/16.1/bin would be the location for Apple M1 silicon - brew changes install folder. The version you may have may vary too.
CMD / Shift / . can help too in showing hidden folders such as /opt or /usr off the root in Finder.
User avatar
mrudolf
HCE Developer
Posts: 988
Joined: Thu Dec 17, 2020 4:44 pm

Re: How to install the Stockfish NNUE engine into Hiarcs UCI

Post by mrudolf »

The line below run in terminal should list your brew path:

Code: Select all

brew config | grep HOMEBREW_PREFIX
Then, stockfish (and lc0 which you can install by brew install lc0) will be in the bin/ subfolder of the folder given above.

Once you are in the terminal, the fastest way may be (assuming brew is in /usr/local):

1. This will open your brew programs folder in Finder.

Code: Select all

open /usr/local/bin
2. Now open HCE Pro, go to Preferences/Engines.
3. Switch back to Finder, find the executable (stockfish, lc0 etc.) and drag the file to engine list in HCE Pro.
Post Reply