Hi
Can you please provide few details about the system:
- CUDA toolkit version
- OS
- GPU
I checked that --csv option works when I tried to profile the CUDA sample asyncAPI using CUDA 11.2 toolkit on a Windows machine.
>nvprof --csv --log-file profiler_output.txt --metrics achieved_occupancy asyncAPI.exe
profiler_output.txt:
==20772== NVPROF is profiling process 20772, command: asyncAPI.exe
==20772== Profiling application: asyncAPI.exe
==20772== Profiling result:
==20772== Metric result:
"Device","Kernel","Invocations","Metric Name","Metric Description","Min","Max","Avg"
"GeForce GTX 1050 (0)","increment_kernel(int*, int)",1,"achieved_occupancy","Achieved Occupancy",0.788937,0.788937,0.7889371
Third syntax - since no option was given to redirect the profiler output to any file, nvprof dumps output on the terminal.