Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions contrib/hipew/src/hipew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,12 @@ void hipewInit( int* resultDriver, int* resultRtc, uint32_t flags, const char**
#ifdef _WIN32
// Expected in C:/Windows/System32 or similar, no path needed.
const char* hip_paths[] = {
"amdhip64_7.dll",
"amdhip64_6.dll",
"amdhip64.dll", // <- hip '5.x' DLL.
NULL };
const char* hiprtc_paths[] = {
"hiprtc0700.dll",
"hiprtc0605.dll",
"hiprtc0604.dll",
"hiprtc0603.dll",
Expand All @@ -644,6 +646,10 @@ void hipewInit( int* resultDriver, int* resultRtc, uint32_t flags, const char**
const char *hip_paths[] = {

// we first try the specific versions
"/opt/rocm/hip/lib/libamdhip64.so.7",
"/opt/rocm/lib/libamdhip64.so.7",
"libamdhip64.so.7",

"/opt/rocm/hip/lib/libamdhip64.so.6",
"/opt/rocm/lib/libamdhip64.so.6",
"libamdhip64.so.6",
Expand All @@ -662,6 +668,10 @@ void hipewInit( int* resultDriver, int* resultRtc, uint32_t flags, const char**
const char* hiprtc_paths[] = {

// we first try the specific versions
"/opt/rocm/hip/lib/libhiprtc.so.7",
"/opt/rocm/lib/libhiprtc.so.7",
"libhiprtc.so.7",

"/opt/rocm/hip/lib/libhiprtc.so.6",
"/opt/rocm/lib/libhiprtc.so.6",
"libhiprtc.so.6",
Expand Down