-
Notifications
You must be signed in to change notification settings - Fork 25
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
Selecting which GPU to use #39
Labels
Comments
Thank you for the bug report!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL;DR: Is it / could it be possible to enforce which GPU will be used (e.g. by env variable)?
I compiled dataviz from sources and ran examples. All of them except gui were displaying blank window.
After some time I discovered DVZ_LOG_LEVEL and noticed the following output:
I have a dual-gpu machine, with NVIDIA gpu active (I'm using Linux Mint builtin feature to switch between them, which I guess uses prime). I thought that dataviz may choose the first device (Intel), while the second is active and that causes blank window (?).
I modified vklite.c:0137 to skip gpus 0 and 2. After that, all examples worked correctly!
Therefore, my suggestion is to provide (or document/expose) a way to select which GPU is used. For example, cuda driver (libcuda) respects env variable CUDA_VISIBLE_DEVICES which allows to influence which GPU is selected as the default. Perhaps it is possible to implement similar mechanism in datoviz?
The text was updated successfully, but these errors were encountered: