How to set gs.device? #662
-
I use 8 Nvidia-4090 GPU, but I need to set gs.device to other GPU(e.g. GPU5) because my GPU0 is bussy. I can set all the tensors to device 5, but anything I got from gs are on device 0. So how can I set gs.device to other devices rather than device0? I didn't find any tutorial on doc... |
Beta Was this translation helpful? Give feedback.
Answered by
Kashu7100
Feb 2, 2025
Replies: 2 comments
-
You can set environment variables using import os
# os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="5" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HerocatUED
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can set environment variables using
os.environ
. Do the following before initializing.