From 538dc09a8b3225cc490a9b8cd5994e5d12f3335a Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Thu, 31 Mar 2022 14:08:10 -0400 Subject: [PATCH] Suppress "rsmi_init() failed" error message When an application call the library in a system without amdgpu, it may always print out "rsmi_init() failed". Suppress the error message in the library. Change-Id: Ice63dd3a764b221a6935536bff1bfa6aa3e51a46 [ROCm/amdsmi commit: 7860de510738a12e3dbd45dd83eef18b2f5e312c] --- projects/amdsmi/src/rocm_smi.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/amdsmi/src/rocm_smi.cc b/projects/amdsmi/src/rocm_smi.cc index d698c813ef..4a8f550aa6 100755 --- a/projects/amdsmi/src/rocm_smi.cc +++ b/projects/amdsmi/src/rocm_smi.cc @@ -436,7 +436,6 @@ rsmi_init(uint64_t flags) { smi.Initialize(flags); } catch(...) { smi.Cleanup(); - std::cerr << "rsmi_init() failed" << std::endl; throw amd::smi::rsmi_exception(RSMI_STATUS_INIT_ERROR, __FUNCTION__); } }