KataGo icon indicating copy to clipboard operation
KataGo copied to clipboard

error CL_OUT_OF_RESOURCES when I try to use with human-like model

Open exxelxior opened this issue 6 months ago • 4 comments

OS: Linux Debian 12 GUI: Sabaki 0.52.2 KataGo v.1.16.2

I play and analysis games with KataGo without any problem using model kata1-b18c384nbt-s9996604416-d4316597426.bin.gz but when I try to play using human-like model it shows me this error at first movement:

KataGo 5kyu human-like> kata-genmove_analyze W 50
= 
/
terminate called after throwing an instance of 'StringError'
  what():  OpenCL error at /home/user/.local/KataGo/cpp/neuralnet/openclbackend.cpp, func err, line 1364, error CL_OUT_OF_RESOURCES (possibly ran out of GPU memory?)

The version of KataGo is compiled by me (openCL). I tried with the AppImage but the error is the same.

The log when I load the engine to start a game:

KataGo v1.16.2
Using Japanese rules initially, unless GTP/GUI overrides this
Creating context for OpenCL Platform: NVIDIA CUDA (NVIDIA Corporation) (OpenCL 3.0 CUDA 12.2.149)
Using OpenCL Device 0: NVIDIA GeForce GTX 1660 Ti (NVIDIA Corporation) OpenCL 3.0 CUDA (Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd)
Loaded tuning parameters from: /home/user/.katago/opencltuning/tune11_gpuNVIDIAGeForceGTX1660Ti_x19_y19_c384_mv14.txt
Creating context for OpenCL Platform: NVIDIA CUDA (NVIDIA Corporation) (OpenCL 3.0 CUDA 12.2.149)
Using OpenCL Device 0: NVIDIA GeForce GTX 1660 Ti (NVIDIA Corporation) OpenCL 3.0 CUDA (Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd)
Loaded tuning parameters from: /home/user/.katago/opencltuning/tune11_gpuNVIDIAGeForceGTX1660Ti_x19_y19_c384_mv15.txt
Initializing board with boardXSize 19 boardYSize 19
Loaded config /home/user/.local/KataGo_v1.16.2/cpp/configs/gtp_human5k_example.cfg
Loaded model /home/user/.katago/models/kata1-b18c384nbt-s9996604416-d4316597426.bin.gz
Loaded human SL model /home/user/.katago/models/b18c384nbt-humanv0.bin.gz
Model name: kata1-b18c384nbt-s9996604416-d4316597426
Human SL model name: b18c384nbt-humanv0
GTP ready, beginning main protocol loop

exxelxior avatar Jun 22 '25 21:06 exxelxior