lightvector / KataGo

GTP engine and self-play learning in Go
https://katagotraining.org/
Other
3.49k stars 564 forks source link

Uncaught exception when genconfig #926

Closed zeoxion closed 5 months ago

zeoxion commented 5 months ago

win 11, katago-v1.14.1-trt8.6.1-cuda12.1-windows-x64.zip I try to run the genconfig command and got this:

PS C:\Program Files\katago> .\katago.exe genconfig -model .\model_2024-04-14.gz -output gtp_custom.cfg

=========================================================================
RULES

What rules should KataGo use by default for play and analysis?
(chinese, japanese, korean, tromp-taylor, aga, chinese-ogs, new-zealand, bga, stone-scoring, aga-button):
chinese

=========================================================================
SEARCH LIMITS

When playing games, KataGo will always obey the time controls given by the GUI/tournament/match/online server.
But you can specify an additional limit to make KataGo move much faster. This does NOT affect analysis/review,
only affects playing games. Add a limit? (y/n) (default n):

NOTE: No limits configured for KataGo. KataGo will obey time controls provided by the GUI or server or match script
but if they don't specify any, when playing games KataGo may think forever without moving. (press enter to continue)

When playing games, KataGo can optionally ponder during the opponent's turn. This gives faster/stronger play
in real games but should NOT be enabled if you are running tests with fixed limits (pondering may exceed those
limits), or to avoid stealing the opponent's compute time when testing two bots on the same machine.
Enable pondering? (y/n, default n):

=========================================================================
GPUS AND RAM

Finding available GPU-like devices...
Found GPU device 0: NVIDIA GeForce RTX 4060 Laptop GPU

Specify devices/GPUs to use (for example "0,1,2" to use devices 0, 1, and 2). Leave blank for a default SINGLE-GPU config:
0

By default, KataGo will cache up to about 3GB of positions in memory (RAM), in addition to
whatever the current search is using. Specify a different max in GB or leave blank for default:

=========================================================================
PERFORMANCE TUNING

Specify number of visits to use test/tune performance with, leave blank for default based on GPU speed.
Use large number for more accurate results, small if your GPU is old and this is taking forever:

Specify number of seconds/move to optimize performance for (default 5), leave blank for default:

Uncaught exception:

btw I can use the opencl version well so i really have no idea about this

zeoxion commented 5 months ago

oh I run the command prompt as administrator and the problem's solved.

lightvector commented 5 months ago

On windows, you should usually avoid putting things in "Program Files" unless it specifically uses one of those Windows installation wizards that is designed to install to there. This is because writing files there requires admin privileges, so any custom programs or scripts or things that may write to the current working directory won't be able to function without special permissions, which ideally one shouldn't be in the habit of granting to programs that don't need it.

zeoxion commented 5 months ago

On windows, you should usually avoid putting things in "Program Files" unless it specifically uses one of those Windows installation wizards that is designed to install to there. This is because writing files there requires admin privileges, so any custom programs or scripts or things that may write to the current working directory won't be able to function without special permissions, which ideally one shouldn't be in the habit of granting to programs that don't need it.

thx for tips! idk those things since I'm a computer noob so the knowledge is quite useful for me