From ff02dc85da9257fe9579de7d56ca93870040c64b Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Wed, 2 Jul 2025 09:39:15 -0500 Subject: [PATCH] Revert "rsmi_init: Do not complain loudly when no driver is found" This reverts commit 42dc44f54dc8391f76f56404d8d6d0e9fb9aed15. [ROCm/rocm_smi_lib commit: 731be3f743df9bb1c06d6afe8c997189175286f0] --- projects/rocm-smi-lib/src/rocm_smi.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/projects/rocm-smi-lib/src/rocm_smi.cc b/projects/rocm-smi-lib/src/rocm_smi.cc index a5190f9d9f..604d9e380c 100755 --- a/projects/rocm-smi-lib/src/rocm_smi.cc +++ b/projects/rocm-smi-lib/src/rocm_smi.cc @@ -485,20 +485,6 @@ rsmi_init(uint64_t flags) { if (smi.ref_count() == 1) { try { smi.Initialize(flags); - } catch(const amd::smi::rsmi_exception& e) { - smi.Cleanup(); - if (e.error_code() == RSMI_INITIALIZATION_ERROR && - !strcmp(e.what(), - "Failed to initialize rocm_smi library (KFD node discovery).")) { - // This system does not actually have ROCM drivers set up - // We were probably just called through dependency, just report the - // error and log without complaining loudly. - std::ostringstream ss; - ss << "Exception caught: " << e.what() << "."; - LOG_INFO(ss); - return RSMI_STATUS_NOT_SUPPORTED; - } - throw amd::smi::rsmi_exception(RSMI_STATUS_INIT_ERROR, __FUNCTION__); } catch(...) { smi.Cleanup(); throw amd::smi::rsmi_exception(RSMI_STATUS_INIT_ERROR, __FUNCTION__);