Add option to use NVIDIA Nsight Compute CLI profiler (#21)

* Use NVIDIA Nsight Compute CLI profiler

* Add profile and profiler-args options to argument parser.

* Add missing comma to profiler-args option.

* Use profile args in version 1 of the plugin

* Change profiler-args option to take all remaining arguments

* Change profiler_args type from string to list of strings

* Add profile option to version 2 of the plugin

* Add profiler usage instructions
This commit is contained in:
Ștefan-Cosmin Ciocan
2023-12-27 10:00:14 +01:00
committed by GitHub
parent 98c9faf45c
commit 887c809d07
4 changed files with 47 additions and 11 deletions
+9
View File
@@ -23,3 +23,12 @@ V2 brings support of multiple source and header files.
%%cuda_run
# This line just to bypass an exeption and can contain any text
```
- To profile your CUDA kernels using NVIDIA Nsight Compute CLI profiler you need to run
```
%%cu --profile
```
- You can add options to the profiler. Keep in mind that any argument after "--profiler-args" will be considered as a profiler argument. For example, to select which sections to collect metrics for you need to run
```
%%cu --profile --profiler-args --section SpeedOfLight --section MemoryWorkloadAnalysis --section Occupancy
```