Adding the possibility of having user selected Cupti metrics#283
Adding the possibility of having user selected Cupti metrics#283comeyrd wants to merge 3 commits intoNVIDIA:mainfrom
Conversation
|
Hi @gevtushenko ! For what I understood, the availability image is an array of uint8_t, that will be used in the futur (or is used now) instead of the chip_name to identify the chip and its capabilities. in cupti_profiler.cxx, line 133 (or around that) you initialise the member variable But in Can you give me insight on that ? Thanks ! |
This pull request is based on the idea from the issue #121.
The user would be able to provide Cupti metrics it wants to use for his benchmark.
By filling one or multiple CustomCuptiMetrics
The
measure_cupti.cuh/cuwould add these custom metrics to the nvbench defined ones, forwarding them tocupti_profiler.cuh/cxx.To support that,
cupti_profiler.cuh/cxxwould need to check if the selected metrics are available on the device, dropping the unavailable metrics and running the experiment even if some metrics are not available.The
measure_cupti.cuh/cuwould handle displaying that metrics were unavailable.The availability of a metric would be queried using Perfworks Metric API and the
NVPW_MetricsEvaluator_GetMetricNames()API call to see if the user-specified metrics are available on the current device.For now only some comments for understanding the actual implementation are on this branch, and also places where I think I will add the required code.
Any thoughts on this Project ?