LEEUNITYAssets / Content / 博客.asset
层级
⌄ Lee / Homepage
INSPECTOR
Type
Content
Name
博客
lee@mtftm.com ↗GitHub ↗
N043SYSTEM / LINUX

技术 / English

Install CUDA Toolkit

Go to the official website to choose the appropriate package.

更新
2025.05.05
阅读
1 分钟
语言
English

Installation

Go to the official website to choose the appropriate package.

Environment Variables

export PATH=/usr/local/cuda-12.8/bin:$PATH
export CUDADIR=/usr/local/cuda-12.8
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-12.8/lib64
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/cuda-12.8/include

Test Installation Status

nvcc --version

Return

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Feb_21_20:23:50_PST_2025
Cuda compilation tools, release 12.8, V12.8.93
Build cuda_12.8.r12.8/compiler.35583870_0