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
Hiding/Disabling one GPU in a multiGPU system #711
Comments
We make this avaialble as a language-level feature rather than a ROCm-wide feature. So depending on the programming language your benchmark uses, you will need to set a different environment variable:
|
Thanks a lot for your detailed reply. I should have been more specific, I am trying to run some benchmarks which were provided here: So it is using Tensorflow with ROCm. In this case, I am not sure if it falls into the category of OpenCL/HIP/HCC. Appreciated if you can let me know. |
AMD's TensorFlow implementation uses the HIP language runtime, so you should probably use |
Thanks, by adding this line HIP_VISIBLE_DEVICES=2 in front of python3 ....benchmark...., I was able to run it on the desired GPU. |
Background: ubuntu 18.04, ROCm 2.1
GPUs: Vega FE2, Radeon VII1
Would there be a way to hide one GPU in the system?
I am trying to run some tests with the GPUs, but many of the benchmark scripts do not allow selecting a particular GPU device. Thus if I can hide the GPU from the software it will be very helpful.
With Nvidia's card, it seems like this can be done by "CUDA_VISIBLE_DEVICES" to hide a GPU from a test. Would there be a similar feature in ROCm?
The text was updated successfully, but these errors were encountered: