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>

[ROCm/rocprofiler-sdk commit: 0952308c4a]
This commit is contained in:
Benjamin Welton
2024-01-16 19:47:45 -08:00
committato da GitHub
parent 099db3bab7
commit 871048b7b9
6 ha cambiato i file con 91 aggiunte e 1 eliminazioni
@@ -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;