diff --git a/README.md b/README.md index c6536152b..f14bb8b44 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ git clone https://github.com/NVIDIA/cuda-samples.git Without using git the easiest way to use these samples is to download the zip file containing the current version by clicking the "Download ZIP" button on the repo page. You can then unzip the entire archive and use the samples. +Be sure to use the cuda-samples version corresponding to your installed CUDA version + ## Building CUDA Samples ### Building CUDA Samples @@ -47,6 +49,9 @@ Configure the project with CMake: ``` cmake .. ``` +> [!TIP] +> If you encounter an error such as `CMAKE_CUDA_ARCHITECTURES must be non-empty if set`, you may need to set CUDACXX explicitly (ex: if using cuda-12, run `CUDACXX=/usr/local/cuda-12/bin/nvcc cmake ..` instead) + Build the samples: ``` make -j$(nproc)