Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down