Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sabaki complains about a missing gtp_logs folder when configuring KataGo #959

Open
sagehane opened this issue Jul 2, 2024 · 1 comment

Comments

@sagehane
Copy link

sagehane commented Jul 2, 2024

I tried getting KataGo working on the Linux AppImage of Sabaki (v0.52.2).

Relevant section of settings.json:

  "engines.list": [
    {
      "name": "KataGo",
      "path": "/etc/profiles/per-user/plumeus/bin/katago",
      "args": "gtp -config /home/plumeus/Downloads/gtp.cfg -model /home/plumeus/Downloads/kata1-b28c512nbt-s7168446720-d4316919285.bin.gz"
    }
  ],

Expected behaviour:

KataGo should work just like on the commandline

$ katago gtp -model /home/plumeus/Downloads/kata1-b28c512nbt-s7168446720-d4316
919285.bin.gz -config /home/plumeus/Downloads/gtp.cfg 
KataGo v1.14.1
Using NewZealand rules initially, unless GTP/GUI overrides this
Creating context for OpenCL Platform: AMD Accelerated Parallel Processing (Advanced Micro Devices, Inc.) (OpenCL 2.1 AMD-APP (3602.0))
Using OpenCL Device 0: gfx1010:xnack- (Advanced Micro Devices, Inc.) OpenCL 2.0  (Extensions: cl_khr_fp64 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_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program )
Loaded tuning parameters from: /home/plumeus/.katago/opencltuning/tune11_gpugfx1010xnack_x19_y19_c512_mv15.txt
Initializing board with boardXSize 19 boardYSize 19
Loaded config /home/plumeus/Downloads/gtp.cfg
Loaded model /home/plumeus/Downloads/kata1-b28c512nbt-s7168446720-d4316919285.bin.gz
Model name: kata1-b28c512nbt-s7168446720-d4316919285
GTP ready, beginning main protocol loop
name
= KataGo

version
= 1.14.1

Actual behaviour

Sabaki complains about some missing folder in the logs.

[2024-07-02 16:57:45.365] <KataGo>  (meta) : Engine Started
[2024-07-02 16:57:45.405] <KataGo>   (err) : terminate called after throwing an instance of 'StringError'
[2024-07-02 16:57:45.406] <KataGo>   (err) :   what():  Error creating directory: gtp_logs
[2024-07-02 16:57:45.503] <KataGo>  (meta) : Engine Stopped
@sagehane
Copy link
Author

sagehane commented Jul 2, 2024

Hmm, uncommenting the line in my gtp.cfg file that corresponds to https:/lightvector/KataGo/blob/v1.14.1/cpp/configs/gtp_example.cfg#L47 seems to solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant