NSight not running in container inside azure VM

Hi I was trying to run nsight on docker, but it throws error.


sudo ../target-linux-x64/nsys profile --stats=true --output=ssd_v2_bsz64_fp16_1K_frames_164FPS python ssd_inference_pytorch.py


Dynamic exception type: boost::process::process_error
std::exception::what: execve failed: Permission denied

The nsys status shows the below -

Timestamp counter supported: No

CPU Profiling Environment Check
Root privilege: enabled
Linux Kernel Paranoid Level = 2
Linux Distribution = Ubuntu
Linux Kernel Version = 5.15.0-1029-azure: OK
Linux perf_event_open syscall available: OK
Sampling trigger event available: OK
Intel(c) Last Branch Record support: Not Available
CPU Profiling Environment (process-tree): OK
CPU Profiling Environment (system-wide): OK

See the product documentation at https://docs.nvidia.com/nsight-systems for more information,
including information on how to set the Linux Kernel Paranoid Level.

nvidia-smi on docker

| NVIDIA-SMI 470.129.06   Driver Version: 470.129.06   CUDA Version: 11.4     |
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|   0  Tesla V100-PCIE...  On   | 00000001:00:00.0 Off |                  Off |
| N/A   26C    P0    23W / 250W |      0MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|  No running processes found                                                 |

Azure VM

Ubuntu 20.04.5 LTS
Docker version 20.10.22+azure-1, build 3a2c30b63ab20acfcc3f3550ea756a0561655a77

Ubuntu 20.04.6 LTS
NVIDIA Nsight Systems version 2023.2.1.122-32598524v0

Hi can I get any active support on this!

Got the solution

chmod -R 777 …/target-linux-x64/

I had just given permission to nsys file in this folder, but seems the whole folder needed it!

Sorry you didn’t get a response back on this before you solved it yourself.

Yes, Nsys needs to general temporary files during its runtime.