Tag: cuda

  • Matching CUDA arch and CUDA gencode for various NVIDIA architectures

    Matching CUDA arch and CUDA gencode for various NVIDIA architectures

    Updated July 12th 2024 tl;dr I’ve seen some confusion regarding NVIDIA’s nvcc sm flags and what they’re used for:When compiling with NVCC, the arch flag (‘-arch‘) specifies the name of the NVIDIA GPU architecture that the CUDA files will be compiled for.Gencodes (‘-gencode‘) allows for more PTX generations and can be repeated many times for…

  • How to check which CUDA version is installed on Linux

    How to check which CUDA version is installed on Linux

    There are several ways and steps you could check which CUDA version is installed on your Linux box. Check if CUDA is installed and it’s location  with NVCC Run which nvcc to find if nvcc is installed properly.You should see something like /usr/bin/nvcc. If that appears, your NVCC is installed in the standard directory. ~ $…

  • X crashes after installing Nvidia driver on CentOS or RHEL

    Recently I’ve been having trouble with the Nvidia driver on CentOS 6. Opening any kind of app that uses the GPU like Google Chrome, Firefox or even Nvidia’s own nvidia-settings causes X to crash and restart. Luckily, I’ve found the solution, and it has to do with libglx.so. Navigate to < pre>/usr/lib64/xorg/modules/extensions/ < pre> and…