prashantjagtap2909 / HPC-Practical

Practical assignments of High performance computing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HPC-Practicals Views

CUDA Installation

    1. Install CUDA Toolkit:

    Download and install the appropriate CUDA Toolkit for your system from the NVIDIA website: https://developer.nvidia.com/cuda-toolkit Follow the installation instructions provided by NVIDIA.

    1. Configure CUDA Paths:
    • After installation, you'll need to set the environment variables for CUDA include and library paths. These paths typically point to the directories containing cuda.h and other CUDA libraries.

    • The specific steps for setting environment variables depend on your operating system. Here are some general guidelines:

      Windows:
    • Right-click on "This PC" or "My Computer" and select "Properties".

    • Go to "Advanced system settings" -> "Environment Variables".

    • Under "System variables", find the "Path" variable and edit it.

    • Add the paths to your CUDA include directory (e.g., C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include) and the CUDA library directory (e.g., C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\libnvdiacompute). Separate each path with a semicolon (;).

    1. Verify Installation:
    • Once you've installed and configured CUDA, try compiling a simple CUDA program to verify if it works. You can use the provided code snippets as a starting point.

About

Practical assignments of High performance computing.


Languages

Language:C++ 100.0%