Skip to content

Commit

Permalink
Use binary_op[_non]_device_copyable where appropriate
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
  • Loading branch information
mmichel11 committed Nov 22, 2024
1 parent db63d45 commit 3deed76
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/general/implementation_details/device_copyable.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ test_device_copyable()
"__gen_red_by_seg_reduce_input is not device copyable with device copyable types");

//__gen_red_by_seg_scan_input
static_assert(
sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_scan_input<noop_device_copyable>>,
"__gen_red_by_seg_scan_input is not device copyable with device copyable types");
static_assert(sycl::is_device_copyable_v<
oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_scan_input<binary_op_device_copyable>>,
"__gen_red_by_seg_scan_input is not device copyable with device copyable types");

//__gen_mask
static_assert(sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__gen_mask<noop_device_copyable>>,
Expand Down Expand Up @@ -196,7 +196,7 @@ test_device_copyable()

//__write_red_by_seg
static_assert(
sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__write_red_by_seg<noop_device_copyable>>,
sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__write_red_by_seg<binary_op_device_copyable>>,
"__write_red_by_seg is not device copyable with device copyable types");

// __early_exit_find_or
Expand Down Expand Up @@ -418,14 +418,14 @@ test_non_device_copyable()
"__gen_transform_input is device copyable with non device copyable types");

//__gen_red_by_seg_reduce_input
static_assert(
!sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_reduce_input<noop_non_device_copyable>>,
"__gen_red_by_seg_reduce_input is device copyable with non device copyable types");
static_assert(!sycl::is_device_copyable_v<
oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_reduce_input<binary_op_non_device_copyable>>,
"__gen_red_by_seg_reduce_input is device copyable with non device copyable types");

//__gen_red_by_seg_reduce_input
static_assert(
!sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_scan_input<noop_non_device_copyable>>,
"__gen_red_by_seg_scan_input is device copyable with non device copyable types");
static_assert(!sycl::is_device_copyable_v<
oneapi::dpl::__par_backend_hetero::__gen_red_by_seg_scan_input<binary_op_non_device_copyable>>,
"__gen_red_by_seg_scan_input is device copyable with non device copyable types");

//__gen_mask
static_assert(!sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__gen_mask<noop_non_device_copyable>>,
Expand Down Expand Up @@ -457,9 +457,9 @@ test_non_device_copyable()
"__write_to_id_if_else is device copyable with non device copyable types");

//__write_red_by_seg
static_assert(
!sycl::is_device_copyable_v<oneapi::dpl::__par_backend_hetero::__write_red_by_seg<noop_non_device_copyable>>,
"__write_red_by_seg is device copyable with non device copyable types");
static_assert(!sycl::is_device_copyable_v<
oneapi::dpl::__par_backend_hetero::__write_red_by_seg<binary_op_non_device_copyable>>,
"__write_red_by_seg is device copyable with non device copyable types");

// __early_exit_find_or
static_assert(
Expand Down

0 comments on commit 3deed76

Please sign in to comment.