Skip to content

Commit

Permalink
Merge pull request #813 from jzc/range-rounding
Browse files Browse the repository at this point in the history
Enable range rounding for range tests
  • Loading branch information
bader authored Nov 2, 2023
2 parents af71f0d + 76b03b9 commit 72c07a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/range/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
file(GLOB test_cases_list *.cpp)

if(SYCL_IMPLEMENTATION STREQUAL "DPCPP")
# in FindDPCPP.cmake, range rounding is disabled globally to reduce
# the number of kernels generated per range parallel_for. However,
# range rounding enables launching of kernels over >32bit ranges,
# and the range_api test in full conformance such kernel launches
# over large ranges, so we renable it here.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__")
endif()

add_cts_test(${test_cases_list})

0 comments on commit 72c07a7

Please sign in to comment.