SWDEV-440718 - Suffix hip bin name with _6.

Link to amd_comgr_2.dll

Change-Id: I5d21af0cc91f2082099273f75ebe1c3279b6365d
This commit is contained in:
Ajay
2024-01-11 12:08:09 -08:00
committed by Maneesh Gupta
parent e9957151f3
commit b53fcb4d02
3 changed files with 9 additions and 3 deletions
+4 -2
View File
@@ -57,9 +57,11 @@ bool Comgr::LoadLib(bool is_versioned) {
cep_.handle = Os::loadLibrary(comgr_lib_name);
#endif
} else {
static constexpr const char* comgr_lib_name =
std::string comgr_major_dll = "amd_comgr_" +
std::to_string(AMD_COMGR_INTERFACE_VERSION_MAJOR) + ".dll";
static const char* comgr_lib_name =
LP64_SWITCH(WINDOWS_SWITCH("amd_comgr32.dll", "libamd_comgr32.so.2"),
WINDOWS_SWITCH("amd_comgr.dll", "libamd_comgr.so.2"));
WINDOWS_SWITCH(comgr_major_dll.c_str(), "libamd_comgr.so.2"));
cep_.handle = Os::loadLibrary(comgr_lib_name);
}
if (nullptr == cep_.handle) {