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
The measure_cupti.cuh/cu would add these custom metrics to the nvbench defined ones, forwarding them to cupti_profiler.cuh/cxx.
To support that, cupti_profiler.cuh/cxx would 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/cu would 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.
Hi @gevtushenko !
I am working on the cupti_profiler that you wrote a few years ago,
I just have one question about the counter_data_builder and it's use.
in cupti_profiler.cxx, line 476 (or around that)
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 m_availability_image,
But in cupti::initialize_counter_data_prefix_image() you give the counter_data_builder a nullptr availability image.
Can you give me insight on that ?
Is there other documentation about cupti else than Cupti Usage, is there an API reference ? Or the only info I can access is in the different headers of the library ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?