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

documentation on UCI options #76

Closed
masterkni6 opened this issue Apr 7, 2021 · 7 comments
Closed

documentation on UCI options #76

masterkni6 opened this issue Apr 7, 2021 · 7 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@masterkni6
Copy link

masterkni6 commented Apr 7, 2021

any place on descriptions of UCI options? the one on github is missing alot and --help in commandline does nothing.
Im trying to use my second GPU and i see First_Device_ID but not sure if thats the right option. Thanks and sorry for all the issues

@QueensGambit
Copy link
Owner

QueensGambit commented Apr 7, 2021

No, worries. I think a lot of people have similar problems or questions and benefit from your issues.

The UCI Options are documented in the Wiki pages:

However, the documentation is currently out-of sync with the current release.
I'll update it soon.


I agree that more info on how to use multiple GPU would be nice.
Multi-GPU support has already been integreated in (#33).

The option Device_ID has been replaced by First_Device_ID and Last_Device_ID.
This way CrazyAra will use all GPUs with a device id of:
First_Device_ID <= Device ID <= Last_Device_ID.
All GPUs use the same precision backend (e.g. float32, float16, int8) and batch size.

A trt file will then be generated for each GPU device index separately.
This allows to use multiple different GPUs (e.g. I am using a GTX1080ti and RTX 2070 OC at the moment).

However, there is the following limitation right now.
If you have a GPU cluster for example and want to use devices 1 and 3, but not device 2, then this is not possible, as you are only able to select a given range of devices.
I wasn't sure if these lacking features are necessary in practice.

@QueensGambit QueensGambit added the question Further information is requested label Apr 7, 2021
@masterkni6
Copy link
Author

im just using each GPU for their own exclusive matches. However setting First and Last device ID to 1 crashes. Second GPU works with lc0 so not sure if there is a problem

@QueensGambit
Copy link
Owner

QueensGambit commented Apr 7, 2021

You need to run the isready process again, preferably from the command line, if you want to use a different GPU.
However, this needs to be done only once.

setoption name First_Device_ID value 1
setoption name Last_Device_ID value 1
isready

For more information see Command-Line-Usage.

@masterkni6
Copy link
Author

masterkni6 commented Apr 7, 2021

im using cutechess so dont think that is an option. Oh is it to generate another trt file?

@QueensGambit
Copy link
Owner

QueensGambit commented Apr 7, 2021

Oh is it to generate another trt file?

Correct.
As you may use two different types of GPUs, they require a different trt-file.

@masterkni6
Copy link
Author

awesome, thanks

@QueensGambit
Copy link
Owner

QueensGambit commented Apr 8, 2021

The documentation on the UCI options has been updated in the wiki-pages.

Adding an additional --help flag is a nice enhancement for future releases.

@QueensGambit QueensGambit added the enhancement New feature or request label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants