Add check to ensure metrics are valid on GPU Arch (#384)
* Add check to ensure metrics are valid on GPU Arch Ensure requested metrics are valid on the GPU arch. If not valid, error is returned during profile config init. * source formatting (clang-format v11) (#385) Co-authored-by: bwelton <bwelton@users.noreply.github.com> * Update metrics.cpp * source formatting (clang-format v11) (#386) Co-authored-by: bwelton <bwelton@users.noreply.github.com> * Update metrics.cpp --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bwelton <bwelton@users.noreply.github.com>
This commit is contained in:
@@ -78,6 +78,7 @@ typedef enum // NOLINT(performance-enum-size)
|
||||
///< with current version of rocprofiler
|
||||
ROCPROFILER_STATUS_ERROR_INVALID_ARGUMENT, ///< Function invoked with one or more invalid
|
||||
///< arguments
|
||||
ROCPROFILER_STATUS_ERROR_METRIC_NOT_VALID_FOR_AGENT, ///< Invalid metric supplied to agent.
|
||||
ROCPROFILER_STATUS_LAST,
|
||||
} rocprofiler_status_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user