Add rocmtools support
This commit adds integration with ROCmTools Additional changes: - Fix DEB and RPM installation issue when systemd is not present - Fix typos in rdc.h - Wrap negative values in parentheses in rdc.h - CMAKE: Improve rocm_smi searching - README: Improve formatting, add info about ROCmTools Metrics added: 700-714 Metrics can be listed with `rdci dmon --list-all` Majority of the metrics are only supported by Instict (MI) series GPUs 700 RDC_FI_PROF_ELAPSED_CYCLES should be available on most devices See README for more information Change-Id: I907d3eacdc92fc5588ca6c76c2fa1ce0ad900770 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
1 parent
73d8b35610
commit
861a843ed7
26 files changed
+1061
-107
No files matched your search
@@ -20,20 +20,21 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
#include "rdc_lib/impl/RdcModuleMgrImpl.h"
|
||||
#include "rdc_lib/impl/RdcTelemetryModule.h"
|
||||
|
||||
#include "rdc_lib/impl/RdcDiagnosticModule.h"
|
||||
#include "rdc_lib/impl/RdcRasLib.h"
|
||||
#include "rdc_lib/impl/RdcRocpLib.h"
|
||||
#include "rdc_lib/impl/RdcRocrLib.h"
|
||||
#include "rdc_lib/impl/RdcTelemetryModule.h"
|
||||
|
||||
namespace amd {
|
||||
namespace rdc {
|
||||
|
||||
RdcModuleMgrImpl::RdcModuleMgrImpl(const RdcMetricFetcherPtr& fetcher):
|
||||
smi_lib_(std::make_shared<RdcSmiLib>(fetcher)) {
|
||||
RdcModuleMgrImpl::RdcModuleMgrImpl(const RdcMetricFetcherPtr& fetcher)
|
||||
: smi_lib_(std::make_shared<RdcSmiLib>(fetcher)) {
|
||||
// The smi_lib_ always need to be loaded.
|
||||
}
|
||||
|
||||
|
||||
RdcTelemetryPtr RdcModuleMgrImpl::get_telemetry_module() {
|
||||
if (rdc_telemetry_module_) {
|
||||
return rdc_telemetry_module_;
|
||||
@@ -44,8 +45,13 @@ RdcTelemetryPtr RdcModuleMgrImpl::get_telemetry_module() {
|
||||
ras_lib_.reset(new RdcRasLib("librdc_ras.so"));
|
||||
}
|
||||
|
||||
if (!rocp_lib_) {
|
||||
rocp_lib_.reset(new RdcRocpLib("librdc_rocp.so"));
|
||||
}
|
||||
|
||||
if (!rdc_telemetry_module_) {
|
||||
rdc_telemetry_module_.reset(new RdcTelemetryModule(smi_lib_, ras_lib_));
|
||||
rdc_telemetry_module_.reset(
|
||||
new RdcTelemetryModule(smi_lib_, ras_lib_, rocp_lib_));
|
||||
}
|
||||
|
||||
return rdc_telemetry_module_;
|
||||
@@ -75,4 +81,3 @@ RdcDiagnosticPtr RdcModuleMgrImpl::get_diagnostic_module() {
|
||||
|
||||
} // namespace rdc
|
||||
} // namespace amd
|
||||
|
||||
Reference in new issue
Block a user