This is a portable Nsight Systems Docker image which allows the user to profile executables anywhere using the Nsight Systems inside the Docker container.
To build the Docker image, please run the following command.
$ docker build -f nsight-systems.Dockerfile --no-cache --tag=nsight-systems:11.4 .
To run the Docker container, please run the following command.
$ xhost +
$ docker run -it --rm --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --cap-add=SYS_ADMIN --security-opt seccomp=unconfined -v $(pwd):/mnt --network=host nsight-systems:11.4
$ xhost -
$ cd $(pwd):/mnt/examples
$ nvcc async_non_pinned_memory.cu -o async_non_pinned_memory
$ nvcc async_pinned_memory.cu -o async_pinned_memory
$ nsys-ui