Skip to content

How to build Lc0 without OpenCL support (currently automatically picks it up) #1936

Answered by mooskagh
BuddhiLW asked this question in Q&A
Discussion options

You must be logged in to vote

To disable opencl support while building Lc0, pass -Dopencl=false flag to the ./build.sh command (or to meson setup if you call it directly).

If you did build Lc0 with the opencl support, you can still use a different backend when running it.
To do that, pass --backend=<backend> command line argument or Backend <backend> uci parameter (I'm not sure whether it's possible to do in nibbler though), or create a lc0.config file either in the same directory as the lc0 binary, or at ~/.config/lc0/lc0.config, with the following contents:

backend=<backend>

To get the list of the available backends, read the description of the --backend parameter at ./lc0 --help. In your case, the most likely back…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BuddhiLW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1935 on December 27, 2023 20:34.