Is there any way I can get the result of nsight compute’s metric in csv file?
nv-nsight-cu-cli --csv ./application
When using the command above, the lists are printed, but what I want to get is a file(.csv), not a printed list.
What should I do?
You can use standard shell functionality to pipe the outputs to a file. You can also use the --log-file ncu parameter and/or write it first to a report file and then import and print that, in order to avoid having other profiler output in the result file.
All of this is documented in the link I have shared. You can find most information in the documentation and ncu --help.