Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple CUDA versions on same Gentoo machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kelvin34501
n00b
n00b


Joined: 05 Oct 2018
Posts: 14

PostPosted: Sat Dec 14, 2024 12:19 pm    Post subject: Multiple CUDA versions on same Gentoo machine Reply with quote

Is it possible to install multiple versions of CUDA on the same Gentoo machine? For example, install both CUDA 11 and 12 for building different pytorch extensions.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22877

PostPosted: Sat Dec 14, 2024 12:30 pm    Post subject: Reply with quote

You can install multiple versions of a slotted package. I see no package named CUDA. Did you mean dev-util/nvidia-cuda-toolkit? If so, that does not appear to be slotted.
Back to top
View user's profile Send private message
kelvin34501
n00b
n00b


Joined: 05 Oct 2018
Posts: 14

PostPosted: Sun Dec 15, 2024 7:19 am    Post subject: Reply with quote

Hu wrote:
You can install multiple versions of a slotted package. I see no package named CUDA. Did you mean dev-util/nvidia-cuda-toolkit? If so, that does not appear to be slotted.


Yes.

The CUDA versions supported by the nvidia-cuda-toolkit are very limited, and it would be best if someone has experience installing CUDA from nvidia runfile on Gentoo.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Sun Dec 15, 2024 10:14 am    Post subject: Reply with quote

kelvin34501 wrote:
Hu wrote:
You can install multiple versions of a slotted package. I see no package named CUDA. Did you mean dev-util/nvidia-cuda-toolkit? If so, that does not appear to be slotted.


Yes.

The CUDA versions supported by the nvidia-cuda-toolkit are very limited, and it would be best if someone has experience installing CUDA from nvidia runfile on Gentoo.


What's the question here? The Gentoo ebuild is based on the NVIDIA binary distribution and really there is no other way.

kelvin34501 wrote:
Is it possible to install multiple versions of CUDA on the same Gentoo machine? For example, install both CUDA 11 and 12 for building different pytorch extensions.


Why would you want that?

What's the real issue you're trying to solve?

Best Regards,
Georgi
Back to top
View user's profile Send private message
kelvin34501
n00b
n00b


Joined: 05 Oct 2018
Posts: 14

PostPosted: Sun Dec 15, 2024 10:33 am    Post subject: Reply with quote

logrusx wrote:
kelvin34501 wrote:
Hu wrote:
You can install multiple versions of a slotted package. I see no package named CUDA. Did you mean dev-util/nvidia-cuda-toolkit? If so, that does not appear to be slotted.


Yes.

The CUDA versions supported by the nvidia-cuda-toolkit are very limited, and it would be best if someone has experience installing CUDA from nvidia runfile on Gentoo.


What's the question here? The Gentoo ebuild is based on the NVIDIA binary distribution and really there is no other way.

kelvin34501 wrote:
Is it possible to install multiple versions of CUDA on the same Gentoo machine? For example, install both CUDA 11 and 12 for building different pytorch extensions.


Why would you want that?

What's the real issue you're trying to solve?

Best Regards,
Georgi


I am trying to build a pytorch extension that only works under CUDA 11, and I don't want to downgrade the system CUDA version
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Sun Dec 15, 2024 11:47 am    Post subject: Reply with quote

kelvin34501 wrote:

I am trying to build a pytorch extension that only works under CUDA 11, and I don't want to downgrade the system CUDA version


Your quickest route is to downgrade, but nct 11 is already ~ keyworded and it's uncertain for how long it'll stay in tree. I'm not sure if slotting it is possible. It looks like it to my half-competent in that regard eye, but it might not be. Best way file a bug request for moving that extension to a newer version.

If you're feeling adventurous, you can try to install it in a custom location and use it from there.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum