You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Prerequisites:** You must first configure the project with CMake as described in the [Building CUDA Samples - Linux](#linux) or [Building]section.
232
+
233
+
After configuring and building, install the samples:
234
+
235
+
```
236
+
cd build/
237
+
make install
238
+
```
239
+
240
+
### Install Samples on Windows
241
+
242
+
**Prerequisites:** You must first configure the project with CMake as described in the [Building CUDA Samples - Windows](#windows) section.
243
+
244
+
#### Using Command Line
245
+
246
+
After configuring with CMake, build and install from the `x64 Native Tools Command Prompt for VS`:
247
+
248
+
```cmd
249
+
cd build
250
+
cmake --build . --config Release
251
+
cmake --install . --config Release
252
+
```
253
+
254
+
**Note:** Replace `Release` with `Debug` if you want to install debug builds. For multi-configuration generators (like Visual Studio), the `--config` flag determines which build type to install.
255
+
256
+
#### Using Visual Studio IDE
257
+
258
+
Alternatively, open the generated solution file `CUDA_Samples.sln` in Visual Studio:
259
+
1. Select the desired configuration (`Release` or `Debug`)
260
+
2. Build the solution (F7 or Build > Build Solution)
261
+
3. Right-click on the `INSTALL` target under `CMakePredefinedTargets` in Solution Explorer
262
+
4. Select "Build"
263
+
198
264
## Running All Samples as Tests
199
265
200
266
It's important to note that the CUDA samples are _not_ intended as a validation suite for CUDA. They do not cover corner cases, they do not completely cover the
@@ -383,6 +449,9 @@ Samples that demonstrate performance optimization.
383
449
### [7. libNVVM](./Samples/7_libNVVM/README.md)
384
450
Samples that demonstrate the use of libNVVVM and NVVM IR.
Samples that are specific to certain platforms (Tegra, cuDLA, NvMedia, NvSci, OpenGL ES).
454
+
386
455
## Dependencies
387
456
388
457
Some CUDA Samples rely on third-party applications and/or libraries, or features provided by the CUDA Toolkit and Driver, to either build or execute. These dependencies are listed below.
0 commit comments