# CUDA
## Environment Variables
Add these to your shell profile to make CUDA tools and libraries visible:
```bash
export CUDA_HOME=/usr/local/cuda
export PATH=/usr/local/cuda/bin:$PATH
export CPATH=/usr/local/cuda/include:$CPATH
export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
```
- `CUDA_HOME` — used by build tools (CMake, pip) to locate the CUDA installation
- `PATH` — makes `nvcc` and other CUDA binaries available
- `CPATH` — header search path for compilers
- `LIBRARY_PATH` — link-time library search path
- `LD_LIBRARY_PATH` — runtime library search path (includes CUPTI for profiling)