Files
MX_Pmodule/Programming/cuda
2021-04-20 08:59:49 +02:00
..
2018-10-11 23:08:23 +02:00
2021-03-01 10:28:00 +01:00
2021-03-12 17:08:59 +01:00

How To Install Cuda

Download the proper Cuda version

wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda_11.2.2_460.32.03_linux.run

Steps

  1. Run installation wizard:
    sh cuda_11.2.2_460.32.03_linux.run --samples --samplespath=/opt/psi/Programming/cuda/11.2.2 --toolkit --toolkitpath=/opt/psi/Programming/cuda/11.2.2 --no-drm
    
  2. Accept EULA: accept
    ┌──────────────────────────────────────────────────────────────────────────────┐
    │  End User License Agreement                                                  │
    │  --------------------------                                                  │
    │                                                                              │
    │  The CUDA Toolkit End User License Agreement applies to the                  │
    │  NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA                    │
    │  Display Driver, NVIDIA Nsight tools (Visual Studio Edition),                │
    │  and the associated documentation on CUDA APIs, programming                  │
    │  model and development tools. If you do not agree with the                   │
    │  terms and conditions of the license agreement, then do not                  │
    │  download or use the software.                                               │
    │                                                                              │
    │  Last updated: Nov 2, 2020.                                                  │
    │                                                                              │
    │                                                                              │
    │  Preface                                                                     │
    │  -------                                                                     │
    │                                                                              │
    │  The Software License Agreement in Chapter 1 and the Supplement              │
    │  in Chapter 2 contain license terms and conditions that govern               │
    │  the use of NVIDIA software. By accepting this agreement, you                │
    │──────────────────────────────────────────────────────────────────────────────│
    │ Do you accept the above EULA? (accept/decline/quit):                         │
    │ accept                                                                       │
    └──────────────────────────────────────────────────────────────────────────────┘
    
  3. CUDA ToolKit: check all
  4. CUDA Samples: check all
  5. CUDA Demo Suite: check all
  6. CUDA Documentation: check all
    ┌──────────────────────────────────────────────────────────────────────────────┐
    │ CUDA Installer                                                               │
    │ - [ ] Driver                                                                 │
    │      [ ] 460.32.03                                                           │
    │ + [X] CUDA Toolkit 11.2                                                      │
    │   [X] CUDA Samples 11.2                                                      │
    │   [X] CUDA Demo Suite 11.2                                                   │
    │   [X] CUDA Documentation 11.2                                                │
    │   Options                                                                    │
    │   Install                                                                    │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │	                                                                          │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │                                                                              │
    │ Up/Down: Move | Left/Right: Expand | 'Enter': Select | 'A': Advanced options │
    └──────────────────────────────────────────────────────────────────────────────┘
    
  7. Options:
    • Driver Options:
      • Do not install any of the OpenGL-related driver files: uncheck
      • Do not install the nvidia-drm kernel module: check
    • ToolKit Options: uncheck all and:
      • Change Toolkit Install Path: /opt/psi/Programming/cuda/11.2.2
    • Samples Options:
      • Change Writeable Samples Install Path: /opt/psi/Programming/cuda/11.2.2
    • Library install path (Blank for system default): /opt/psi/Programming/cuda/11.2.2
  8. Install

Post-Installation

  1. Add the new version in the variants file:
    (base) [caubet_m@merlin-l-001 cuda]$ git diff files/variants.rhel7
    diff --git a/Programming/cuda/files/variants.rhel7 b/Programming/cuda/files/variants.rhel7
    index ba48643..2cb6f93 100644
    --- a/Programming/cuda/files/variants.rhel7
    +++ b/Programming/cuda/files/variants.rhel7
    @@ -7,3 +7,4 @@ cuda/10.1.105   stable
     cuda/11.0.3     stable
     cuda/11.1.0     stable
     cuda/11.1.1     stable
    +cuda/11.2.2     unstable
    
  2. Update Module files:
    (base) [caubet_m@merlin-l-001 cuda]$ ./build 11.2.2 --update-modulefiles
    cuda/11.2.2: already exists, not rebuilding ...
    cuda/11.2.2: installing modulefile in '/opt/psi/Programming/modulefiles/cuda' ...
    
  3. Commit + push:
    (base) [caubet_m@merlin-l-001 cuda]$ git commit -a -m "Added cuda/11.2.2 -> unstable"
    [CUDA_README db375c2] Added cuda/11.2.2 -> unstable
     Committer: Caubet Serrabou Marc <caubet_m@merlin-l-001.psi.ch>
    Your name and email address were configured automatically based
    on your username and hostname. Please check that they are accurate.
    You can suppress this message by setting them explicitly:
    
        git config --global user.name "Your Name"
        git config --global user.email you@example.com
    
    After doing this, you may fix the identity used for this commit with:
    
        git commit --amend --reset-author
    
     1 file changed, 1 insertion(+)
    
    (base) [caubet_m@merlin-l-001 cuda]$     git push --set-upstream origin CUDA_README
    Username for 'https://gitlab.psi.ch': caubet_m
    Password for 'https://caubet_m@gitlab.psi.ch': 
    Counting objects: 11, done.
    Delta compression using up to 88 threads.
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (6/6), 595 bytes | 0 bytes/s, done.
    Total 6 (delta 3), reused 0 (delta 0)
    remote: 
    remote: To create a merge request for CUDA_README, visit:
    remote:   https://gitlab.psi.ch/Pmodules/buildblocks/-/merge_requests/new?merge_request%5Bsource_branch%5D=CUDA_README
    remote: 
    To https://gitlab.psi.ch/Pmodules/buildblocks.git
     * [new branch]      CUDA_README -> CUDA_README
    Branch CUDA_README set up to track remote branch CUDA_README from origin.
    
  4. Request merge request from the provided URL