MaciejKozarzewski / AlphaGomoku

AlphaZero for the game of Gomoku.
GNU General Public License v3.0
23 stars 0 forks source link

clBuildProgram couldn't be located... #12

Open nguyencongminh090 opened 1 month ago

nguyencongminh090 commented 1 month ago

image

nguyencongminh090 commented 1 month ago

I fixed. Solution: download OpenCL.dll and rename to libopencl.dll instead of download libopencl.dll

nguyencongminh090 commented 1 month ago

There is another problem, maybe related to openCL lib: image

nguyencongminh090 commented 1 month ago

image

MaciejKozarzewski commented 1 month ago

As far as I know, it's not enough to just download opencl library. You need to install the appropriate driver. Error -1001 means that there are no available ICD (Installable Client Driver).

nguyencongminh090 commented 1 month ago

What about OpenCLRuntimeError occurred in function 'opencl_create_view' at line 53 got error code -38? My GPU is: image

MaciejKozarzewski commented 1 month ago

Ok, so the device seems to be recognized. Run selfcheck with opencl version and then attach results here. Also you can attach your config file.

nguyencongminh090 commented 1 month ago

config.json Have you checked OpenCl version before public?

MaciejKozarzewski commented 1 month ago

selfcheck.txt please.

Of course I tested it on my machine, but it works here. Your config works as well, although I didn't expect to mix cpu and gpu devices, but apparently it works.

nguyencongminh090 commented 1 month ago

image selfcheck.txt

nguyencongminh090 commented 1 month ago

I tested with OpenCL only and same result

MaciejKozarzewski commented 1 month ago

Ok, selfcheck revealed some problem in the opencl code. I will look into it.

MaciejKozarzewski commented 1 month ago

I'm able to reproduce the problem. Actually there are several problems here. The first is that I forgot to write in the manual that you also need clblast.dll (but probably you figured out it by yourself). The second is the compilation error revealed in selfcheck. This one was easy to fix. The third is more technical, namely it seems that it's not allowed to create sub-buffer from a sub-buffer (although it works on Nvidia gpus with opencl). This is more work but I think it can be fixed too.

MaciejKozarzewski commented 1 month ago

Everything should be fixed with the 5.8.2 version. However the performance of OpenCL on integrated GPUs is absolutely terrible and I don't have a clue why. But since the clblast library also has low performance I think it's not the problem on my side. Check out the new version and let me know if any issues appear.

nguyencongminh090 commented 1 month ago

image I don't know how to describe about this problem

nguyencongminh090 commented 1 month ago

I have the same problem with my own program that I writed by python and compile to exe. When Yixin load the enigne, it read stdout from program. The case of AlphaGomoku is better, just stdout is outside program, still can receive stdin from program. image