Closed zhenjia-xu closed 2 years ago
Thanks for the bug report! There might be some place that we accidentally used GPU0 by default and we should get it fixed.
Add this line os.environ['TI_VISIBLE_DEVICE'] = '1'
which will make your vulkan instance to pick the number 1 device
But still I think we should unify the value of TI_VISIBLE_DEVICE
and CUDA_VISIBLE_DEVICES
if only one is indicated.
Refer to this pr #5910
Adding os.environ['TI_VISIBLE_DEVICE'] = '1'
still doesn't work.
Adding
os.environ['TI_VISIBLE_DEVICE'] = '1'
still doesn't work.
TI_VISIBLE_DEVICE needs to be 2 I think in your case. Anyways, GGUI is not really tested with multi-GPU setups, there might be bugs
wow, TI_VISIBLE_DEVICE='2' works! the reason is that Vulkan device 0 is CPU and GPU index starts from 1.
Describe the bug I want to use taichi on a multi-gpu server. But GGUI has an error if the
CUDA_VISIBLE_DEVICES
is not 0To Reproduce
Log/Screenshots
Additional comments