Add DEBUG_LOG macro

Add DEBUG_LOG that will optionally print error
message when RSMI_DEBUG_BITFIELD is set to 2.

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I6017e92d8a9e5f9861ae29ece0488d4bc198f996
This commit is contained in:
Divya Shikre
2022-05-06 09:33:58 -04:00
parent c9b42bff57
commit 99be3451d7
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -376,6 +376,10 @@ void RocmSMI::GetEnvVariables(void) {
#endif
}
const RocmSMI_env_vars& RocmSMI::getEnv(void) {
return env_vars_;
}
std::shared_ptr<Monitor>
RocmSMI::FindMonitor(std::string monitor_path) {
std::string tmp;