This reverts commit 7b00d3a89b.
The workaround is no longer needed - root cause fixed in:
- rocm-smi-lib (PR #2531): Made devInfoTypesStrings file-local static
- amdsmi (PR #2575): Added visibility("hidden") attribute
Dieser Commit ist enthalten in:
1 Ursprung
005f07004d
Commit
b53c99669c
3 Dateien geändert
+7
-37
Keine Dateien entsprechen Ihrer Suche
@@ -31,6 +31,8 @@
|
||||
} \
|
||||
} // namespace ::tim::cereal
|
||||
|
||||
#include "common/defines.h"
|
||||
|
||||
#if !defined(ROCPROFSYS_USE_ROCM)
|
||||
# define ROCPROFSYS_USE_ROCM 0
|
||||
#endif
|
||||
@@ -40,7 +42,6 @@
|
||||
|
||||
#include <timemory/manager.hpp>
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <string>
|
||||
|
||||
#include "core/agent_manager.hpp"
|
||||
@@ -92,17 +93,6 @@ _amdsmi_is_initialized()
|
||||
return initialized;
|
||||
}
|
||||
|
||||
void
|
||||
prevent_amdsmi_library_unload()
|
||||
{
|
||||
static bool _initialized = false;
|
||||
if(_initialized) return;
|
||||
_initialized = true;
|
||||
|
||||
dlopen("libamd_smi.so", RTLD_NOW | RTLD_NOLOAD | RTLD_NODELETE);
|
||||
dlopen("librocm_smi64.so", RTLD_NOW | RTLD_NOLOAD | RTLD_NODELETE);
|
||||
}
|
||||
|
||||
bool
|
||||
amdsmi_init()
|
||||
{
|
||||
@@ -113,8 +103,6 @@ amdsmi_init()
|
||||
ROCPROFSYS_AMD_SMI_CALL(::amdsmi_init(AMDSMI_INIT_AMD_GPUS));
|
||||
get_processor_handles();
|
||||
_amdsmi_is_initialized() = true; // Mark as initialized
|
||||
|
||||
prevent_amdsmi_library_unload();
|
||||
} catch(std::exception& _e)
|
||||
{
|
||||
LOG_ERROR("Exception thrown initializing amd-smi: {}", _e.what());
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren