You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c33def2
Browse filesBrowse the repository at this point in the historyBrowse files
* Add experimental CUPTI Backend
Signed-off-by: Alok Joshi <aljoshi@nvidia.com>
* Add CI job for testing CUPTI backend
Rename the existing NCU test job to test-ncu and add a test-cupti job
on both amd64 and arm64 GPU runners that runs the suite with
--tool-init=cupti to exercise the experimental CUPTI backend.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Alok Joshi <aljoshi@nvidia.com>
---------
Signed-off-by: Alok Joshi <aljoshi@nvidia.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Combine with ``derive_metric`` to compute speedup (reciprocal of normalized value).
183
200
metrics: The metrics to collect. By default, kernel runtimes in nanoseconds
184
201
are collected. Default: ``["gpu__time_duration.sum"]``. To see the available
185
-
metrics on your system, use the command: ``ncu --query-metrics``.
202
+
metrics on your system when using ncu, use the command: ``ncu --query-metrics``.
186
203
ignore_kernel_list:
187
204
List of kernel names to ignore. If you call a library within an annotated range context, you might not have precise control over which and how many kernels are being launched.
188
205
If some of these kernels should be ignored in the profile, their names can be provided in this parameter. Default: ``None``
@@ -364,6 +381,22 @@ def my_benchmark(n, dtype):
364
381
# Strip whitespace
365
382
metrics= [m.strip() forminmetrics]
366
383
384
+
# These are decorator parameters, so reject illegal values now rather than
385
+
# when the decorated function is first called. Whether the active tool
386
+
# supports a legal value is a separate check, made by the collector.
387
+
ifclock_controlnotin ("base", "none"):
388
+
raiseValueError(
389
+
f"Invalid clock_control {clock_control!r}. Expected 'base' or 'none'."
390
+
)
391
+
ifcache_controlnotin ("all", "none"):
392
+
raiseValueError(
393
+
f"Invalid cache_control {cache_control!r}. Expected 'all' or 'none'."
394
+
)
395
+
ifreplay_modenotin ("kernel", "range"):
396
+
raiseValueError(
397
+
f"Invalid replay_mode {replay_mode!r}. Expected 'kernel' or 'range'."
398
+
)
399
+
367
400
# Validate thermal parameters if both are provided
0 commit comments