mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-08-23 23:40:31 +08:00
README formatting changes
This commit is contained in:
parent
2f0a55d7dc
commit
45314d7ff8
12
README.md
12
README.md
@ -135,13 +135,21 @@ $ cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_LIBRARY_PATH=/usr
|
|||||||
|
|
||||||
### QNX
|
### 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
|
$ mkdir build
|
||||||
$ cd 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
|
### Forward Compatibility
|
||||||
|
@ -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
|
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
|
To build and run the libNVVM samples with CUDA Toolkits 13.0 or newer, user-mode
|
||||||
(Version 580 or later) and old KMD(Version 550 or earlier),user need to
|
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 with adding
|
update the CMake invocation in utils/build.sh or build.bat by adding
|
||||||
`CMAKE_PREFIX_PATH` with stubs path like this:
|
`CMAKE_PREFIX_PATH` with a stubs path as follows:
|
||||||
"-DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/"
|
```
|
||||||
|
-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