Ignore old GPU when building Pytorch?

I’ve a old which isn’t supported
(nvcc fatal : Unsupported gpu architecture ‘compute_30’),
and a new one which is fine.
Building CUDA it complains about the unsupported GPU, is there a way to ignore the old one?

When choosing CUDA device, you can detrmine the GPU by doing torch.cuda.set_device([device]). Read more here; link.

Feel free to read this thread too for alternative options such as setting CUDA_VISIBLE_DEVICES

Using CUDA_VISIBLE_DEVICES worked.

1 Like