Adding the possibility of having user selected Cupti metrics #283
+61
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 ?