mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-08-23 23:40:31 +08:00
Bug 5355361: Update README.md of 7_libNVVM for forward compatibility sample build
This commit is contained in:
parent
225f84d433
commit
0d61031846
@ -146,7 +146,7 @@ QNX_HOST=/path/to/qnx/host QNX_TARGET=/path/to/qnx/target cmake .. -DBUILD_TEGRA
|
|||||||
|
|
||||||
### Forward Compatibility
|
### 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/ ..
|
cmake -DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/ ..
|
||||||
|
@ -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
|
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.
|
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
|
A Note About the cuda-c-linking Sample
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user