- Enter a running docker container:
docker compose exec -u root recorder bash
- Install Nsight Systems:
apt update
apt install nsight-systems
- Re-enter the runner docker container as normal user:
docker compose exec recorder bash
- Run the recorder script with nsys profile:
nsys profile --trace=cuda,nvtx --cudabacktrace=all --duration=60 python3 /app/vsword_recorder.py --config /config/survey.yaml --ram_ringbuffer_path . --output_path /data/ringbuffer
-
User needs to be in
debuggroup and container needs capabilitySYS_PTRACE. Seecap_addandgroup_adddocker compose options. -
Enter a running docker container:
docker compose exec -u root recorder bash
- Install cuda-gdb:
apt update
apt install cuda-gdb-12-2
- Re-enter the runner docker container as normal user:
docker compose exec recorder bash
- Run the recorder script with CUDA_DEVICE_WAITS_ON_EXCEPTION=1 and attach later:
CUDA_DEVICE_WAITS_ON_EXCEPTION=1 python3 /app/vsword_recorder.py --config /config/survey.yaml --ram_ringbuffer_path . --output_path /data/ringbuffer
cuda-gdb --pid={PID}