Skip to content

Commit 63c0c8c

Browse files
committed
Modify submodule for Baikal build
1 parent 41c391f commit 63c0c8c

File tree

5 files changed

+3032
-4812
lines changed

5 files changed

+3032
-4812
lines changed

CLW/CLW.lua

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project "CLW"
22
kind "StaticLib"
33
location "../CLW"
4-
includedirs { "." }
4+
includedirs { ".", ".." }
55
files { "../CLW/**.h", "../CLW/**.cpp", "../CLW/CL/CLW.cl" }
66

77
if os.is("macosx") then
@@ -15,25 +15,22 @@ project "CLW"
1515
configuration {}
1616

1717
-- we rely on RadeonRays to do the actual embedding for us
18-
if _OPTIONS["embed_kernels"] then
19-
defines {"RR_EMBED_KERNELS=1"}
20-
os.execute( "python ../Tools/scripts/stringify.py " ..
18+
defines {"RR_EMBED_KERNELS=1"}
19+
os.execute( "python ../Tools/scripts/stringify.py " ..
2120
os.getcwd() .. "/../CLW/CL/ " ..
2221
".cl " ..
2322
"opencl " ..
2423
"> ./kernelcache/clwkernels_cl.h"
2524
)
26-
print ">> CLW: CL kernels embedded"
25+
print ">> CLW: CL kernels embedded"
2726

28-
-- there is no CLW version for vulkan (yet at least)
29-
end
3027

3128
configuration {"x32", "Debug"}
32-
targetdir "../Bin/Debug/x86"
29+
targetdir "../../Bin/Debug/x86"
3330
configuration {"x64", "Debug"}
34-
targetdir "../Bin/Debug/x64"
31+
targetdir "../../Bin/Debug/x64"
3532
configuration {"x32", "Release"}
36-
targetdir "../Bin/Release/x86"
33+
targetdir "../../Bin/Release/x86"
3734
configuration {"x64", "Release"}
38-
targetdir "../Bin/Release/x64"
35+
targetdir "../../Bin/Release/x64"
3936
configuration {}

CLW/CLWParallelPrimitives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ THE SOFTWARE.
3030

3131
#ifdef RR_EMBED_KERNELS
3232
#if USE_OPENCL
33-
# include <CLW/kernelcache/clwkernels_cl.h>
33+
#include <CLW/kernelcache/clwkernels_cl.h>
3434
#endif
3535
#endif // RR_EMBED_KERNELS
3636

Calc/Calc.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,14 @@ project "Calc"
3030
includedirs { ".", "./inc", "../CLW" }
3131
files { "../Calc/**.h", "../Calc/**.cpp"}
3232

33-
if _OPTIONS["use_opencl"] then
3433
links {"CLW"}
35-
end
3634

3735
configuration {"x32", "Debug"}
38-
targetdir "../Bin/Debug/x86"
36+
targetdir "../../Bin/Debug/x86"
3937
configuration {"x64", "Debug"}
40-
targetdir "../Bin/Debug/x64"
38+
targetdir "../../Bin/Debug/x64"
4139
configuration {"x32", "Release"}
42-
targetdir "../Bin/Release/x86"
40+
targetdir "../../Bin/Release/x86"
4341
configuration {"x64", "Release"}
44-
targetdir "../Bin/Release/x64"
42+
targetdir "../../Bin/Release/x64"
4543
configuration {}

RadeonRays/RadeonRays.lua

Lines changed: 9 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project "RadeonRays"
77
end
88

99
location "../RadeonRays"
10-
includedirs { "./include", "../Calc/inc" }
10+
includedirs { "./include", "../Calc/inc", ".." }
1111

1212
if _OPTIONS["shared_calc"] then
1313
defines {"CALC_IMPORT_API"};
@@ -62,29 +62,15 @@ project "RadeonRays"
6262

6363
configuration {}
6464

65-
if _OPTIONS["embed_kernels"] then
66-
defines {"RR_EMBED_KERNELS=1"}
65+
defines {"RR_EMBED_KERNELS=1"}
6766

68-
if _OPTIONS["use_vulkan"] then
69-
os.execute( "python ../Tools/scripts/stringify.py " ..
70-
os.getcwd() .. "../RadeonRays/src/kernels/GLSL/ " ..
71-
".comp " ..
72-
"vulkan " ..
73-
"> ./src/kernelcache/kernels_vk.h"
74-
)
75-
print ">> RadeonRays: VK kernels embedded"
76-
end
77-
78-
if _OPTIONS["use_opencl"] then
79-
os.execute( "python ../Tools/scripts/stringify.py " ..
67+
os.execute( "python ../Tools/scripts/stringify.py " ..
8068
os.getcwd() .. "/../RadeonRays/src/kernels/CL/ " ..
8169
".cl " ..
8270
"opencl " ..
8371
"> ./src/kernelcache/kernels_cl.h"
8472
)
85-
print ">> RadeonRays: CL kernels embedded"
86-
end
87-
end
73+
print ">> RadeonRays: CL kernels embedded"
8874

8975
if _OPTIONS["use_embree"] then
9076
files {"../RadeonRays/src/device/embree*"}
@@ -109,40 +95,15 @@ project "RadeonRays"
10995

11096
if _OPTIONS["enable_raymask"] then
11197
configuration {}
112-
defines {"RR_RAY_MASK"}
113-
end
114-
115-
if _OPTIONS["use_vulkan"] then
116-
local vulkanSDKPath = os.getenv( "VK_SDK_PATH" );
117-
if vulkanSDKPath == nil then
118-
vulkanSDKPath = os.getenv( "VULKAN_SDK" );
119-
end
120-
if vulkanSDKPath ~= nil then
121-
configuration {"x32"}
122-
libdirs { vulkanSDKPath .. "/Bin32" }
123-
configuration {"x64"}
124-
libdirs { vulkanSDKPath .. "/Bin" }
125-
configuration {}
126-
end
127-
if os.is("macosx") then
128-
--no Vulkan on macOs need to error out TODO
129-
elseif os.is("linux") then
130-
libdirs { vulkanSDKPath .. "/lib" }
131-
links { "Anvil",
132-
"vulkan",
133-
"pthread"}
134-
elseif os.is("windows") then
135-
links {"Anvil"}
136-
links {"vulkan-1"}
137-
end
98+
defines {"RR_RAY_MASK"}
13899
end
139100

140101
configuration {"x32", "Debug"}
141-
targetdir "../Bin/Debug/x86"
102+
targetdir "../../Bin/Debug/x86"
142103
configuration {"x64", "Debug"}
143-
targetdir "../Bin/Debug/x64"
104+
targetdir "../../Bin/Debug/x64"
144105
configuration {"x32", "Release"}
145-
targetdir "../Bin/Release/x86"
106+
targetdir "../../Bin/Release/x86"
146107
configuration {"x64", "Release"}
147-
targetdir "../Bin/Release/x64"
108+
targetdir "../../Bin/Release/x64"
148109
configuration {}

0 commit comments

Comments
 (0)