Skip to content

Commit 9aae355

Browse files
authored
Merge pull request #5 from GPUOpen-LibrariesAndSDKs/fixes-public-repo
Fixes public repo
2 parents e391f66 + 73d5612 commit 9aae355

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "contrib/easy-encryption"]
55
path = contrib/easy-encryption
66
url = https://github.com/amdadvtech/easy-encryption
7-
[submodule "test/common/meshes/lfs"]
8-
path = test/common/meshes/lfs
9-
url = https://github.com/amdadvtech/TestModels

premake5.lua

Lines changed: 6 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

@@ -194,6 +195,10 @@ workspace "hiprt"
194195
end
195196
defines {"__USE_HIP__"}
196197

198+
-- this define is to identify that we are on the public repository of HIPRT.
199+
-- it helps AMD to maintain both a public and a private repo for experimentation.
200+
defines {"HIPRT_PUBLIC_REPO"}
201+
197202
targetdir "dist/bin/%{cfg.buildcfg}"
198203
location "build/"
199204

test/common/meshes/lfs

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/main.cpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <map>
3232
#include <chrono>
3333

34+
#ifndef HIPRT_PUBLIC_REPO
3435
TEST_F( PerformanceTestCases, AoRayEmbreeHairball )
3536
{
3637
constexpr bool Timings = true;
@@ -48,7 +49,9 @@ TEST_F( PerformanceTestCases, AoRayEmbreeHairball )
4849
render( "AoRayHairball.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayHairball.png", Timings, AoRadius );
4950
deleteScene( m_scene );
5051
}
52+
#endif
5153

54+
#ifndef HIPRT_PUBLIC_REPO
5255
TEST_F( PerformanceTestCases, AoRayHairball )
5356
{
5457
constexpr bool Timings = true;
@@ -66,7 +69,9 @@ TEST_F( PerformanceTestCases, AoRayHairball )
6669
render( "AoRayHairball.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayHairball.png", Timings, AoRadius );
6770
deleteScene( m_scene );
6871
}
72+
#endif
6973

74+
#ifndef HIPRT_PUBLIC_REPO
7075
TEST_F( PerformanceTestCases, AoRayEmbreeBistro )
7176
{
7277
constexpr bool Timings = true;
@@ -84,7 +89,9 @@ TEST_F( PerformanceTestCases, AoRayEmbreeBistro )
8489
render( "AoRayEmbreeBistro.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayBistro.png", Timings, AoRadius );
8590
deleteScene( m_scene );
8691
}
92+
#endif
8793

94+
#ifndef HIPRT_PUBLIC_REPO
8895
TEST_F( PerformanceTestCases, AoRayBistro )
8996
{
9097
constexpr bool Timings = true;
@@ -102,7 +109,9 @@ TEST_F( PerformanceTestCases, AoRayBistro )
102109
render( "AoRayBistro.png", "../test/kernels/AoRayKernel.h", "AoRayKernel", "AoRayBistro.png", Timings, AoRadius );
103110
deleteScene( m_scene );
104111
}
112+
#endif
105113

114+
#ifndef HIPRT_PUBLIC_REPO
106115
TEST_F( PerformanceTestCases, PrimaryRayBistro )
107116
{
108117
constexpr uint32_t Option = VisualizeColor;
@@ -121,7 +130,9 @@ TEST_F( PerformanceTestCases, PrimaryRayBistro )
121130
render( "PrimaryRayBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
122131
deleteScene( m_scene );
123132
}
133+
#endif
124134

135+
#ifndef HIPRT_PUBLIC_REPO
125136
TEST_F( PerformanceTestCases, BvhFastBistro )
126137
{
127138
constexpr uint32_t Option = VisualizeColor;
@@ -140,7 +151,9 @@ TEST_F( PerformanceTestCases, BvhFastBistro )
140151
render( "BvhFastBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
141152
deleteScene( m_scene );
142153
}
154+
#endif
143155

156+
#ifndef HIPRT_PUBLIC_REPO
144157
TEST_F( PerformanceTestCases, BvhHighQBistro )
145158
{
146159
constexpr uint32_t Option = VisualizeColor;
@@ -159,7 +172,9 @@ TEST_F( PerformanceTestCases, BvhHighQBistro )
159172
render( "BvhHighQBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", Timings );
160173
deleteScene( m_scene );
161174
}
175+
#endif
162176

177+
#ifndef HIPRT_PUBLIC_REPO
163178
TEST_F( PerformanceTestCases, BvhBalancedBistro )
164179
{
165180
constexpr uint32_t Option = VisualizeColor;
@@ -178,6 +193,7 @@ TEST_F( PerformanceTestCases, BvhBalancedBistro )
178193
render( "BvhBalancedBistro.png", "../test/kernels/PrimaryRayKernel.h", kernelName, "PrimaryRayBistro.png", getTimings );
179194
deleteScene( m_scene );
180195
}
196+
#endif
181197

182198
TEST_F( ObjTestCases, TranslateCornellBox )
183199
{
@@ -2683,5 +2699,6 @@ int main( int argc, const char* argv[] )
26832699
#endif
26842700

26852701
::testing::AddGlobalTestEnvironment( new InitCommandlineArgs( parsedArgs ) );
2686-
return RUN_ALL_TESTS();
2702+
int ret = RUN_ALL_TESTS();
2703+
return ret;
26872704
}

0 commit comments

Comments
 (0)