Skip to content

Instantly share code, notes, and snippets.

View garg-aayush's full-sized avatar

Aayush Garg garg-aayush

View GitHub Profile
@garg-aayush
garg-aayush / Steps_multiple_cuda_environments.md
Last active June 26, 2024 13:41
Managing multiple CUDA versions using environment modules in Ubuntu

Steps to manage multiple CUDA environments

Latest Update: May 19th, 2024

This gist contains all the steps required to:

  • Install multiple CUDA versions (e.g., CUDA 11.8 and CUDA 12.1
  • Manage multiple CUDA environments on Ubuntu using the utility called environment modules.
  • Use this approach to avoid CUDA environment conflicts.

Environment Modules is a package that provides for the dynamic modification of a user's environment via modulefiles. You can find more on it at https://modules.readthedocs.io/en/latest/