Is their an equivalent for os.environ["CUDA_VISIBLE_DEVICES"]="0" in the os module for isolating GPUs when using AMD ROCm?
According to this documentation, HIP_VISIBLE_DEVICES environment variable should have the same effect. So:
os.environ["HIP_VISIBLE_DEVICES"]="0"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With