(I saw there is a description for Mac-users-:))
Please can anybody provide us with the binary for macOS?
Please can you post it like the windows Versions under: https://github.com/LeelaChessZero/lc0/releases.
Thanks in Advance.
Moderator: Ras
Hi there, maybe you should place your request on these LC0 related sites:Steppenwolf wrote: ↑Sat Feb 09, 2019 8:50 am Hi there. I am very interested in the Leela project, but I am not a programmer and cannot compile Lc0 by myself.
(I saw there is a description for Mac-users-:))
Please can anybody provide us with the binary for macOS?
Please can you post it like the windows Versions under: https://github.com/LeelaChessZero/lc0/releases.
Thanks in Advance.
![]()
Compiling yourself is the only way to ensure you have the correct dependancies installed on your computer. Without such dependancies, any binary that anyone posts will never work on your mac. It's that simple. Furthermore, to compile for OpenCL or Cuda is a little trickier and requires even more dependancies. Without Cudo or OpenCL, you will have to use open blas which is CPU based. At that point, it will be painfully slow. and hundreds of Elo weaker than those with high end GPU's. Now, if for some reason you sincerely believe your mac has magically acquired all of the aforementioned dependancies with out any successful effort on your part, here's a mac binary you can try..Steppenwolf wrote: ↑Thu May 16, 2019 9:12 am by Typing these commands :
pip install numpy
pip install wheel
pip install six
pip install setuptools
pip install tensorflow
it always came: "command not found"
during compiling also came several error Messages...
I can you provide with the meson-log-text-file via PM if you wish-:)
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <OpenCL/opencl.h>
int main(int argc, char* const argv[]) {
cl_uint num_devices, i;
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &num_devices);
cl_device_id* devices = calloc(sizeof(cl_device_id), num_devices);
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, num_devices, devices, NULL);
char buf[128];
for (i = 0; i < num_devices; i++) {
clGetDeviceInfo(devices[i], CL_DEVICE_NAME, 128, buf, NULL);
fprintf(stdout, "Device %s supports ", buf);
clGetDeviceInfo(devices[i], CL_DEVICE_VERSION, 128, buf, NULL);
fprintf(stdout, "%s\n", buf);
}
free(devices);
}
Code: Select all
Mac-Pro:documents $ clang -framework OpenCL hello.c -o hello
hello.c:7:2: warning: 'clGetDeviceIDs' is deprecated: first deprecated in macOS 10.14 - (Define
CL_SILENCE_DEPRECATION to hide this warning) [-Wdeprecated-declarations]
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &num_devices);
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:584:1: note: 'clGetDeviceIDs' has been explicitly
marked deprecated here
clGetDeviceIDs(cl_platform_id /* platform */,
^
hello.c:10:2: warning: 'clGetDeviceIDs' is deprecated: first deprecated in macOS 10.14 - (Define
CL_SILENCE_DEPRECATION to hide this warning) [-Wdeprecated-declarations]
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, num_devices, devices, NULL);
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:584:1: note: 'clGetDeviceIDs' has been explicitly
marked deprecated here
clGetDeviceIDs(cl_platform_id /* platform */,
^
hello.c:14:3: warning: 'clGetDeviceInfo' is deprecated: first deprecated in macOS 10.14 - (Define
CL_SILENCE_DEPRECATION to hide this warning) [-Wdeprecated-declarations]
clGetDeviceInfo(devices[i], CL_DEVICE_NAME, 128, buf, NULL);
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:591:1: note: 'clGetDeviceInfo' has been explicitly
marked deprecated here
clGetDeviceInfo(cl_device_id /* device */,
^
hello.c:17:3: warning: 'clGetDeviceInfo' is deprecated: first deprecated in macOS 10.14 - (Define
CL_SILENCE_DEPRECATION to hide this warning) [-Wdeprecated-declarations]
clGetDeviceInfo(devices[i], CL_DEVICE_VERSION, 128, buf, NULL);
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:591:1: note: 'clGetDeviceInfo' has been explicitly
marked deprecated here
clGetDeviceInfo(cl_device_id /* device */,
^
4 warnings generated.
Code: Select all
Mac-Pro:documents $ ./hello
Device Intel(R) Xeon(R) CPU X5690 @ 3.47GHz supports OpenCL 1.2
Device AMD Radeon HD 7950 Compute Engine supports OpenCL 1.2
Mac-Pro:documents michaelbyrne$
Steppenwolf,Steppenwolf wrote: ↑Mon May 20, 2019 10:02 am Dear MikeB,
thanks for your detailed Message with your help.
Unfortunately, I am not that expert to be able to Compile the binary (thanks for your uploaded binary, but I did not work).
I also Understand that there are several libraries needed to run lc0 on macOS.
But why not making a complete bundle for some dummies like me where all the requested stuff is inside to be run on a mac?
Thanks again, Steppenwolf