Merge branch 'shawnz_bug_fix' into 'master'

Update README with removing the old auto-linux part

See merge request cuda-samples/cuda-samples!127
This commit is contained in:
Rob Armstrong 2025-08-05 21:22:57 -07:00
commit 3f1c509650

View File

@ -115,23 +115,6 @@ make -j$(nproc)
``` ```
Transfer the built binaries to the Tegra device and execute them there. Transfer the built binaries to the Tegra device and execute them there.
### Building for Automotive Linux Platforms
These platforms require additional information to be passed to CMake on the command line to ensure proper resolution of all necessary include and library files.
Instead of being in the default location, `/usr/local/cuda/include` or `/usr/local/cuda/lib64`, you must point to architecture-specific paths:
`/usr/local/cuda/<ARCH>/targets/aarch64-linux/lib`
and
`/usr/local/cuda/<ARCH>/include`
An example build might look like this:
```
$ mkdir build
$ cd build
$ cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DCMAKE_LIBRARY_PATH=/usr/local/cuda/orin/lib64/ -DCMAKE_INCLUDE_PATH=/usr/local/cuda/orin/include -DBUILD_TEGRA=True ..
```
### Cross Building for Automotive Linux Platforms from the DriveOS Docker containers ### Cross Building for Automotive Linux Platforms from the DriveOS Docker containers