Skip to content

Commit

Permalink
Merge branch 'SYCL-2020' into fix-get-kernel-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
KornevNikita authored Aug 3, 2023
2 parents 7b8e56a + 47a0517 commit c49c99e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions cmake/FindDPCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ endif()

# Set SYCL compilation mode, SYCL 2020 standard version and user provided flags
set(DPCPP_FLAGS "-fsycl;-sycl-std=2020;${DPCPP_FLAGS}")

# -fsycl-id-queries-fit-in-int is an optimization enabled by default, but
# adds non-conformant behavior that limits the number of work-items in an
# invocation of a kernel, so we disable this behavior here.
set(DPCPP_FLAGS "${DPCPP_FLAGS};-fno-sycl-id-queries-fit-in-int")

# Set target triple(s) if specified
if(DEFINED DPCPP_TARGET_TRIPLES)
set(DPCPP_FLAGS "${DPCPP_FLAGS};-fsycl-targets=${DPCPP_TARGET_TRIPLES};")
Expand Down
4 changes: 0 additions & 4 deletions tests/accessor/accessor_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,6 @@ template <accessor_type AccType, typename DataT, int Dimension,
sycl::access_mode AccessMode = sycl::access_mode::read_write,
sycl::target Target = sycl::target::device, typename GetAccFunctorT>
void check_zero_length_buffer_constructor(GetAccFunctorT get_accessor_functor) {
// FIXME Check is disabled due to unresolved issue
// https://github.com/KhronosGroup/SYCL-Docs/issues/408
#if !SYCL_CTS_COMPILING_WITH_DPCPP
constexpr int dim_buf = (0 == Dimension) ? 1 : Dimension;
auto queue = once_per_unit::get_queue();
sycl::range<dim_buf> buf_range =
Expand Down Expand Up @@ -621,7 +618,6 @@ void check_zero_length_buffer_constructor(GetAccFunctorT get_accessor_functor) {
for (size_t i = 0; i < conditions_checks_size; i++) {
CHECK(conditions_check[i]);
}
#endif
}
#endif // !SYCL_CTS_COMPILING_WITH_HIPSYCL

Expand Down

0 comments on commit c49c99e

Please sign in to comment.