20.04 comes with an old nvprof tool: nvidia-profiler (10.1.243-3)
20.10 comes with a newer one: nvidia-profiler (11.0.3-1ubuntu1)
Unfortunately, neither of these is capable of running on a 3000-series card.
Even when you get the 11.2 profiler from This NVIDIA server that serves deb archives, it will not support it.
Instead, you are expected to run nvidia-nsight-compute to profile your kernel. It seems like command line profiling with nvprof is no longer a thing.
Answer from Bram on Stack Exchangenvprof --analysis-metrics not working for RTX 2070 (CUDA 10.0)
How to profile in CUDA application with compute capability 7.x? Is metric "dram_read_throughput" valid in Nsight Compute? - Stack Overflow
An Even Easier Introduction to CUDA
PyTorchProfiler crashes when emit_nvtx=True
20.04 comes with an old nvprof tool: nvidia-profiler (10.1.243-3)
20.10 comes with a newer one: nvidia-profiler (11.0.3-1ubuntu1)
Unfortunately, neither of these is capable of running on a 3000-series card.
Even when you get the 11.2 profiler from This NVIDIA server that serves deb archives, it will not support it.
Instead, you are expected to run nvidia-nsight-compute to profile your kernel. It seems like command line profiling with nvprof is no longer a thing.
Bram's answer seems to be correct. Maybe try something like this instead, if you still want to stay in the console:
nsys profile -t nvtx,cuda --stats=true --force-overwrite true --wait=all -o my_report ./my_app
nsys gives you a nice overview of the kernels and their runtimes.