From feb23ab2566b013e7dc9069d80579c7814e9aa88 Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Tue, 9 Aug 2022 15:57:14 +0000 Subject: [PATCH] SWDEV-336448 - Load comgr versioned dll in hiprtc Change-Id: I9c966ac6e3beae707d732e4bf84f88457d6265de [ROCm/clr commit: 651f33314022bc5dcf6751c0b906a84231c59019] --- projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp index 88b27cebac..746c769dad 100644 --- a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -33,7 +33,8 @@ using namespace helpers; //RTC Program Member Functions RTCProgram::RTCProgram(std::string name) : name_(name) { - std::call_once(amd::Comgr::initialized, amd::Comgr::LoadLib); + constexpr bool kComgrVersioned = true; + std::call_once(amd::Comgr::initialized, amd::Comgr::LoadLib, kComgrVersioned); if (amd::Comgr::create_data_set(&exec_input_) != AMD_COMGR_STATUS_SUCCESS) { crashWithMessage("Failed to allocate internal hiprtc structure"); }