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
+3
View File
@@ -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>)
+2 -1
View File
@@ -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