Bug 5355361: Update README.md of 7_libNVVM for forward compatibility sample build

This commit is contained in:
shawnz 2025-06-18 16:24:55 +08:00
parent 225f84d433
commit 0d61031846
2 changed files with 7 additions and 1 deletions

View File

@ -146,7 +146,7 @@ QNX_HOST=/path/to/qnx/host QNX_TARGET=/path/to/qnx/target cmake .. -DBUILD_TEGRA
### Forward Compatibility
To build samples with new CUDA Toolkit(CUDA 13.0 or later) and UMD(version 580 or later) and old KMD(version 535 or earlier)you need to set the `CMAKE_PREFIX_PATH` for using new driver library, the command might like this:
To build samples with new CUDA Toolkit(CUDA 13.0 or later) and UMD(Version 580 or later) and old KMD(Version 550 or earlier)you need to set the `CMAKE_PREFIX_PATH` for using new driver library, the command might like this:
```
cmake -DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/ ..

View File

@ -58,6 +58,12 @@ Alternatively, we provide a Makefile that will automatically build these
samples on Linux as part of the toplevel cuda-samples build. Windows users
should build manually via utils/built.bat or Visual Studio's CMake integration.
To build and run samples with new CUDA Toolkit(CUDA 13.0 or later) and UMD
(Version 580 or later) and old KMD(Version 550 or earlier)user need to
update the CMake invocation in utils/build.sh or build.bat with adding
`CMAKE_PREFIX_PATH` with stubs path like this:
"-DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/"
A Note About the cuda-c-linking Sample
--------------------------------------