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.