compute cli does not seems to work on child processes

when i run nvprof -o profile --profile-child-processes ./test.py, where my python script spawn subprocess, it runs fine and export fine

When i use nv-nsight-cu-cli -o profile --target-processes all ./test.py it does successfully launch, however no profile got generated.

Is there anything i need to specify further ?

Can you please check if passing the path to the python interpreter explicitly solves the problem for you? I.e. please try (depending on the location of the python binary):

nv-nsight-cu-cli -o profile --target-processes all /usr/bin/python ./test.py

In addition, it would be helpful if you could let us know your operating system and the output of

nv-nsight-cu-cli --version

Thanks for your reply.

i have incorporated my python interpreter explicitly, however no luck, my script runs and launched, but no profiling exported.

My version:

Version 2019.1.1 (Build 25827221)

My OS is:

Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

I was running a script that spawn tensorflow program if that helps.

python version 3.6.8 
tensorflow version 1.13.1

Thank you. This is very likely a known issue related to tracking processes spawned via execv(). We will provide a fix for this in an upcoming release. In the meantime, as a workaround, you can try to launch your script with a python 2 interpreter, which sometimes behaves differently in terms of process management.