I am trying to run the nsight compute profiler for a pytorch model inside nvidia pytorch docker container, an instance of the nvcr.io/nvidia/pytorch:20.03-py3 image using the following command:
nv-nsight-cu-cli python app.py
And I am still getting the error:
free(): invalid pointer
==ERROR== The application returned an error code (6)
==WARNING== No kernels were profiled
==WARNING== Profiling kernels launched by child processes requires the --target-processes all option
The nvidia driver version is 440.64
CUDA is 10.2
On the https://docs.nvidia.com/nsight-compute/ReleaseNotes/index.html
it does say that the free():invalid pointer" error has been fixed.
And that the nv-nsight-cu-cli command has been replaced by ncu.
But if I use ncu command, I get ncu command not found error.
What should be done to get rid of this error.