Specify Gpu device #260
-
Dear all, I am using pyamrex with cuda backend. However, I cannot find where I can specify the gpu device_id. Many thanks for your feedback. Best |
Beta Was this translation helpful? Give feedback.
Answered by
WeiqunZhang
Feb 7, 2024
Replies: 1 comment 1 reply
-
For single process runs, we always use the first visible device. You can use CUDA_VISIBLE_DEVICES to control which devices are visible. https://developer.nvidia.com/blog/cuda-pro-tip-control-gpu-visibility-cuda_visible_devices/ |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ax3l
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For single process runs, we always use the first visible device. You can use CUDA_VISIBLE_DEVICES to control which devices are visible.
https://developer.nvidia.com/blog/cuda-pro-tip-control-gpu-visibility-cuda_visible_devices/