diff --git a/README.md b/README.md index 9af7258f..842061ba 100644 --- a/README.md +++ b/README.md @@ -135,13 +135,21 @@ $ cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_LIBRARY_PATH=/usr ### QNX -The sample cross-compilation for QNX is supported since v13.0 CUDA Samples. An example build for Tegra Thor QNX platform might like this: +Cross-compilation for QNX with CMake is supported in the CUDA 13.0 samples release and newer. An example build for +the Tegra Thor QNX platform might look like this: ``` $ mkdir build $ cd build -QNX_HOST=/path/to/qnx/host QNX_TARGET=/path/to/qnx/target cmake .. -DBUILD_TEGRA=True -DCMAKE_CUDA_COMPILER=/usr/local/cuda-safe-13.0/bin/nvcc -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-qnx.cmake -DCMAKE_LIBRARY_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/lib/stubs/ -DCMAKE_INCLUDE_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/include/ +QNX_HOST=/path/to/qnx/host \ +QNX_TARGET=/path/to/qnx/target \ +cmake .. \ +-DBUILD_TEGRA=True \ +-DCMAKE_CUDA_COMPILER=/usr/local/cuda-safe-13.0/bin/nvcc \ +-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-qnx.cmake \ +-DCMAKE_LIBRARY_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/lib/stubs/ \ +-DCMAKE_INCLUDE_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/include/ ``` ### Forward Compatibility diff --git a/Samples/7_libNVVM/README.md b/Samples/7_libNVVM/README.md index efb957ec..6b1128b4 100644 --- a/Samples/7_libNVVM/README.md +++ b/Samples/7_libNVVM/README.md @@ -58,11 +58,13 @@ 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/" +To build and run the libNVVM samples with CUDA Toolkits 13.0 or newer, user-mode +driver 580 and newer, old kernel-mode drivers (version 550 or earlier),youm must +update the CMake invocation in utils/build.sh or build.bat by adding +`CMAKE_PREFIX_PATH` with a stubs path as follows: +``` +-DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/ +``` A Note About the cuda-c-linking Sample --------------------------------------