diff --git a/.github/workflows/therock-ci-linux.yml b/.github/workflows/therock-ci-linux.yml index 5ac783f6c9..a9272bfda0 100644 --- a/.github/workflows/therock-ci-linux.yml +++ b/.github/workflows/therock-ci-linux.yml @@ -66,6 +66,7 @@ jobs: run: | # Remove patches here if they cannot be applied cleanly, and they have not been deleted from TheRock repo # rm ./TheRock/patches/amd-mainline/rocm-systems/*.patch + rm -f ./TheRock/patches/amd-mainline/rocm-systems/0006-Explicitly-load-libamdhip64.so.7.patch ./TheRock/build_tools/fetch_sources.py --jobs 12 --no-include-rocm-systems --no-include-rocm-libraries --no-include-ml-frameworks diff --git a/.github/workflows/therock-ci-windows.yml b/.github/workflows/therock-ci-windows.yml index 6110c95869..380ea04bd0 100644 --- a/.github/workflows/therock-ci-windows.yml +++ b/.github/workflows/therock-ci-windows.yml @@ -54,6 +54,7 @@ jobs: run: | # Remove patches here if they cannot be applied cleanly, and they have not been deleted from TheRock repo # rm ./TheRock/patches/amd-mainline/rocm-systems/*.patch + rm -f ./TheRock/patches/amd-mainline/rocm-systems/0006-Explicitly-load-libamdhip64.so.7.patch git -c user.name="therockbot" -c "user.email=therockbot@amd.com" am --whitespace=nowarn ./TheRock/patches/amd-mainline/rocm-systems/*.patch - name: Install requirements diff --git a/projects/clr/hipamd/src/hip_comgr_helper.cpp b/projects/clr/hipamd/src/hip_comgr_helper.cpp index 479c93bd16..8171dbcd7d 100644 --- a/projects/clr/hipamd/src/hip_comgr_helper.cpp +++ b/projects/clr/hipamd/src/hip_comgr_helper.cpp @@ -906,7 +906,8 @@ bool RTCProgram::findIsa() { std::string dll_name = std::string("amdhip64_" + std::to_string(HIP_VERSION_MAJOR) + ".dll"); libName = dll_name.c_str(); #else - libName = "libamdhip64.so"; + std::string so_name = std::string("libamdhip64.so." + std::to_string(HIP_VERSION_MAJOR)); + libName = so_name.c_str(); #endif void* handle = amd::Os::loadLibrary(libName); diff --git a/projects/clr/hipamd/src/hip_platform.cpp b/projects/clr/hipamd/src/hip_platform.cpp index 4c0cbc01ee..117793e09a 100644 --- a/projects/clr/hipamd/src/hip_platform.cpp +++ b/projects/clr/hipamd/src/hip_platform.cpp @@ -1093,7 +1093,8 @@ void* PlatformState::getDynamicLibraryHandle() { #ifdef _WIN32 const char* libName = "amdhip64.dll"; #else - const char* libName = "libamdhip64.so"; + std::string so_name = std::string("libamdhip64.so." + std::to_string(HIP_VERSION_MAJOR)); + const char* libName = so_name.c_str(); #endif dynamicLibraryHandle_ = amd::Os::loadLibrary(libName);