From 04ace898e06dcade7546a530ab5ad7f9f3db0943 Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Fri, 10 Jun 2022 11:00:14 +0000 Subject: [PATCH] SWDEV-327563 - Fix the hip runtime library name to load in hiprtc on Windows Change-Id: Ib4988dd8677da907bec8e59b1b4ce3e57aad2bb7 [ROCm/clr commit: bf4cf3c3693a3d168970bca381753194af272d12] --- projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp index 233fc358aa..f1d6d2ab2c 100644 --- a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -42,7 +42,7 @@ RTCProgram::RTCProgram(std::string name) : name_(name) { bool RTCProgram::findIsa() { const char* libName; #ifdef _WIN32 - libName = "libamdhip64.dll"; + libName = "amdhip64.dll"; #else libName = "libamdhip64.so"; #endif @@ -52,6 +52,7 @@ bool RTCProgram::findIsa() { if (!handle) { LogInfo("hip runtime failed to load using dlopen"); build_log_ += + "hip runtime failed to load.\n" "Error: Please provide architecture for which code is to be " "generated.\n"; return false; @@ -63,6 +64,7 @@ bool RTCProgram::findIsa() { if (sym_hipGetDevice == nullptr || sym_hipGetDeviceProperties == nullptr) { LogInfo("ISA cannot be found to dlsym failure"); build_log_ += + "ISA cannot be found from hip runtime.\n" "Error: Please provide architecture for which code is to be " "generated.\n"; return false;