SWDEV-440718 - Suffix hip bin name with _6.
Link to amd_comgr_2.dll Change-Id: I5d21af0cc91f2082099273f75ebe1c3279b6365d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user