Running compute-sanitizer within a docker container

I couldn’t find any information on running compute-sanitizer from within a docker container. The following works fine outside of the container. Within the container sample executes correctly and processes on the GPU but C-S doesn’t seem to pick up any API calls.

> dk run --gpus 1 --cap-add SYS_ADMIN --privileged=true -it app_test_dbg 

> nvcc -g -G -lstdc++ sample.cpp ../lib/libCFELib.a -o ./sample
> compute-sanitizer --target-processes all --tool memcheck ./sample
========= COMPUTE-SANITIZER
========= Error: Target application terminated before first instrumented API call

Is this a supported scenario? If it is I’m assuming I’m missing some sort of configuration/permissions on or within my container but I’m not sure what. I already tried some of the suggestions related to getting NSight running within a container, e.g. enabling sampling but that hasn’t helped.

Thanks!
A.

Hi, please use the following docker flags:

--cap-add=SYS_ADMIN --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --privileged 
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.