Prerequisites for Sample Applications#
Before building and running sample applications with NVIDIA DriveOS, verify the following prerequisites:
Due to newly implemented Security controls, all DriveOS RFS are mounted as
noexec
by default in the/home
directory. As a result, users are unable to execute programs in/home
directories such as/home/<user>
.To enable execution of programs downloaded to these directories, run the following command at the target Linux prompt:
$ sudo mount -o remount,exec /home
To access the GPU from a Docker container, ensure that you have the NVIDIA Container Toolkit installed. For installation instructions, see the NVIDIA Container Toolkit documentation for your host development environment distribution.
An NVIDIA GPU and appropriate CUDA drivers must also be available on the host to run GPU-accelerated applications, including samples.
If you are compiling and running samples in Docker and you want to preserve the compiled samples, consider that Docker containers are a temporary environment that will be deleted when the container is stopped. To preserve the changes made in a running container, see the Docker documentation on committing Docker images.
Alternatively, if the container was started with a mounted
${WORKSPACE}
, you can copy or move the compiled binaries to the mounted${WORKSPACE}
before exiting the container. This ensures that the compiled binaries will be available on the host.