CUDA Installation Guide

CUDA is a parallel computing platform and programming model created by NVIDIA. It allows software developers to use a CUDA-enabled graphics processing unit (GPU) for general purpose processing. This guide will help you through the installation process of CUDA on your system.

System Requirements

Before installing CUDA, make sure your system meets the following requirements:

  • Operating System: Linux, Windows, or macOS
  • Processor: CUDA-enabled GPU
  • Memory: At least 4GB of RAM

Installation Steps

  1. Download CUDA Toolkit: Visit the CUDA Toolkit Download page and download the appropriate version for your operating system.

  2. Install CUDA Toolkit: Follow the installation instructions provided by NVIDIA.

  3. Set Environment Variables: After installation, set the environment variables to ensure that CUDA is accessible from the command line.

    • On Linux:

      export PATH=/usr/local/cuda/bin:$PATH
      export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
      
    • On Windows: Add the CUDA bin directory to your system's PATH environment variable.

  4. Verify Installation: Run the following command in the terminal to verify that CUDA is installed correctly:

    nvcc --version
    

    If the command returns a version number, CUDA is installed correctly.

Useful Links

CUDA GPU