Skip to content

Commit

Permalink
Mods to make test run successfully with omp target enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Nov 4, 2024
1 parent 8baeab9 commit 3602695
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions test/test-raja-perf-suite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ int main( int argc, char** argv )
TEST(ShortSuiteTest, Basic)
{

// default checksum tolerance for test pass/fail
rajaperf::Checksum_type chksum_tol = 1e-7;

// Assemble command line args for basic test
Expand All @@ -74,6 +75,15 @@ TEST(ShortSuiteTest, Basic)

#if !defined(_WIN32)

#if defined(RAJA_ENABLE_TARGET_OPENMP)
chksum_tol = 5e-6;

sargv.emplace_back(std::string("--exclude-kernels"));
sargv.emplace_back(std::string("Comm"));
sargv.emplace_back(std::string("EDGE3D"));
sargv.emplace_back(std::string("MATVEC_3D_STENCIL"));
#else

#if ( (defined(RAJA_COMPILER_CLANG) && __clang_major__ == 11) || \
defined(RUN_RAJAPERF_SHORT_TEST) )
sargv.emplace_back(std::string("--exclude-kernels"));
Expand All @@ -85,17 +95,9 @@ TEST(ShortSuiteTest, Basic)
#endif
#endif

#endif // !defined(_WIN32)

#endif // else

#if defined(RAJA_ENABLE_TARGET_OPENMP)
chksum_tol = 5e-6;

sargv.emplace_back(std::string("--exclude-kernels"));
sargv.emplace_back(std::string("Comm"));
sargv.emplace_back(std::string("EDGE3D"));
sargv.emplace_back(std::string("MATVEC_3D_STENCIL"));
#endif
#endif // !defined(_WIN32)


char *unit_test = getenv("RAJA_PERFSUITE_UNIT_TEST");
Expand Down

0 comments on commit 3602695

Please sign in to comment.