Skip to content

Commit dd79b49

Browse files
committed
premake - improve for HIP_PATH on Windows
on WIndows, HIP_PATH is expected to look like: C:\Program Files\AMD\ROCm\5.7 HIP SDK can be installed from: https://www.amd.com/en/developer/resources/rocm-hub/hip-sdk.html
1 parent d27f653 commit dd79b49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

premake5.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ function get_hip_sdk_verion()
110110
if string.sub(HIP_PATH, -1, -1) == '\\' or string.sub(HIP_PATH, -1, -1) == '/' then
111111
HIP_PATH = string.sub(HIP_PATH, 1, -2)
112112
end
113-
hipCommand = HIP_PATH..'\\'..hipCommand
113+
-- HIP_PATH is expected to look like: C:\Program Files\AMD\ROCm\5.7
114+
hipCommand = '\"' .. HIP_PATH..'\\bin\\'..hipCommand .. '\"'
114115
end
115116
end
116117

0 commit comments

Comments
 (0)