pytorch / ELF

ELF: a platform for game research with AlphaGoZero/AlphaZero reimplementation
Other
3.37k stars 566 forks source link

RuntimeError:Device index must not be negetive #158

Open Jimerlife opened 5 years ago

Jimerlife commented 5 years ago

After running ./start_client.sh, a error called "RuntimeError:Device index must not be negetive" ocurred. Did someone has same problem?

germank commented 5 years ago

Not sure if this is the right solution, but I managed to fix this by adding --gpu0 0 to scripts/elfgames/go/start_client.sh.

I just don't see from the code where should the option parser pick up that the default value for --gpu0 should be the same as the one for --gpu if not explicitly given.

kamrankausar commented 4 years ago

RuntimeError: Device index must not be negative [INFO/MainProcess] process shutting down