SWDEV-440718 - Suffix hip bin name with _6.

Link to amd_comgr_2.dll

Change-Id: I5d21af0cc91f2082099273f75ebe1c3279b6365d


[ROCm/clr commit: b53fcb4d02]
This commit is contained in:
Ajay
2024-01-11 12:08:09 -08:00
committad av Maneesh Gupta
förälder 3dc533e1e1
incheckning ca50750dae
3 ändrade filer med 9 tillägg och 3 borttagningar
+3
Visa fil
@@ -59,6 +59,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
if(BUILD_SHARED_LIBS)
add_library(amdhip64 SHARED)
if(WIN32)
set_target_properties(amdhip64 PROPERTIES RUNTIME_OUTPUT_NAME "amdhip64_${HIP_VERSION_MAJOR}")
endif()
# Windows doesn't have a strip utility, so CMAKE_STRIP won't be set.
if((CMAKE_BUILD_TYPE STREQUAL "Release") AND NOT ("${CMAKE_STRIP}" STREQUAL ""))
add_custom_command(TARGET amdhip64 POST_BUILD COMMAND ${CMAKE_STRIP} $<TARGET_FILE:amdhip64>)
@@ -59,7 +59,8 @@ RTCProgram::RTCProgram(std::string name) : name_(name) {
bool RTCProgram::findIsa() {
const char* libName;
#ifdef _WIN32
libName = "amdhip64.dll";
std::string dll_name = std::string("amdhip64_" + std::to_string(HIP_VERSION_MAJOR) + ".dll");
libName = dll_name.c_str();
#else
libName = "libamdhip64.so";
#endif
+4 -2
Visa fil
@@ -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) {