Skip to main content
If you don’t need to recompile code, you typically don’t need to install CUDA/cuDNN separately. Frameworks come with precompiled CUDA support, and the framework version corresponds to a specific CUDA version. Therefore, you only need to focus on the framework version and not the CUDA version independently.

Check Default CUDA/cuDNN Version

The CUDA version displayed by the nvidia-smi command only indicates the highest CUDA version supported by the driver, not the actual version of CUDA installed on the instance.
To check the default CUDA version installed in the platform’s built-in image (installation directory is /usr/local/):
bash
To check the cuDNN version installed in the platform’s built-in image:
bash
The version number is indicated by the number after .so in the output logs. If you have installed CUDA via conda, you can check it using the following commands:
bash

Install Other Versions of CUDA/cuDNN

Method 1: Install using Conda

Advantages: Simple and easy to use. Disadvantages: Typically, header files are not included. If you need to compile code, you will need to install using Method 2.
bash
bash

Method 2: Install by Downloading and Installing the Package

CUDA Download Address: CUDA Toolkit Archive
Installation Method: After downloading the .run installation package:
bash
cuDNN Download Address: CUDA Deep Neural Network
Installation Method:
  1. Unzip the downloaded file.
  2. Move the dynamic libraries and header files to the corresponding directories:
bash
  1. After installation, add the environment variable:
bash
The default image includes the most basic version of CUDA and cuDNN. If you have installed cudatoolkit via Conda, it will generally be used preferentially over the default installation.