Problem with nv-nsight-cu-cli

Greetings all,

I am trying to run the command line version of nsight. I follow the steps as in:

When I execute the following command:

/usr/local/NVIDIA-Nsight-Compute-2021.2/nv-nsight-cu-cli --query-metrics-mode suffix --metrics “regex:.*” --devices 0 ./bfs …/…/data/bfs/graph1MW_6.txt

This is the command that is mentioned in the previous pdf file that I have shared. I need the values for all the metrics for the BFS benchmark in Rodinia Benchmark. However, on executing this command I get the following error:

Device Quadro RTX 4000 (TU104)
==WARNING== The below metrics are either invalid or don’t have suffixes.
regex:.*

I am following the steps as outlined but still Iam getting the error. If anyone can help it will be great.

Regards
Govind

query-metrics-mode suffix does not support specifying metric base names via regex. You can simply use

ncu --query-metrics-mode all --devices 0

to achieve this. Note that specifying a target application binary when querying metrics is not possible/useful. You should first determine the metrics to collect and then collect them for the specific application. I recommend to not collect all possible metrics, though, but rather the “full” set and/or a subset of all possible metrics that is required for your analysis. You can combine --set full with --metrics.

ncu --set full ./bfs
ncu --metrics <comma-separated list> ./bfs