Skip to content

Commit 224f382

Browse files
[ORO-0] Adding hiprtc+comgr dlls to workaround the regression in 22.7.1 driver (#38)
* [ORO-0] Adding hiprtc to workaround the regression in 22.7.1 driver released at 7/26/2022. * [ORO-0] Created win64 subdir. * [ORO-0] Add hiprtc.dll and comgr dll Co-authored-by: takahiroharada <[email protected]>
1 parent c8c303b commit 224f382

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

contrib/bin/win64/amd_comgr.dll

91.2 MB
Binary file not shown.
456 KB
Binary file not shown.

contrib/bin/win64/hiprtc.dll

800 KB
Binary file not shown.

premake5.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
function copydir(src_dir, dst_dir, filter, single_dst_dir)
2+
if not os.isdir(src_dir) then
3+
printError("'%s' is not an existing directory!", src_dir)
4+
end
5+
filter = filter or "**"
6+
src_dir = src_dir .. "/"
7+
-- print("copy '%s' to '%s'.", src_dir .. filter, dst_dir)
8+
dst_dir = dst_dir .. "/"
9+
local dir = path.rebase(".",path.getabsolute("."), src_dir) -- root dir, relative from src_dir
10+
11+
os.chdir( src_dir ) -- change current directory to src_dir
12+
local matches = os.matchfiles(filter)
13+
os.chdir( dir ) -- change current directory back to root
14+
15+
local counter = 0
16+
for k, v in ipairs(matches) do
17+
local target = iif(single_dst_dir, path.getname(v), v)
18+
--make sure, that directory exists or os.copyfile() fails
19+
os.mkdir( path.getdirectory(dst_dir .. target))
20+
if os.copyfile( src_dir .. v, dst_dir .. target) then
21+
counter = counter + 1
22+
end
23+
end
24+
25+
if counter == #matches then
26+
-- print(" %d files copied.", counter)
27+
return true
28+
else
29+
-- print(" %d/%d files copied.", counter, #matches)
30+
return nil
31+
end
32+
end
33+
134
workspace "YamatanoOrochi"
235
configurations { "Debug", "Release" }
336
language "C++"
@@ -34,6 +67,9 @@ workspace "YamatanoOrochi"
3467
defines { "_CRT_SECURE_NO_WARNINGS" }
3568
startproject "Unittest"
3669

70+
copydir("./contrib/bin/win64", "./dist/bin/Debug/")
71+
copydir("./contrib/bin/win64", "./dist/bin/Release/")
72+
3773
include "./UnitTest"
3874
group "Samples"
3975
include "./Test"

0 commit comments

Comments
 (0)