Skip to content

Commit

Permalink
Add device copyable test for single_match_pred
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Michel <[email protected]>
  • Loading branch information
mmichel11 committed Oct 18, 2024
1 parent fe612e2 commit d75aaa2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/general/implementation_details/device_copyable.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ test_device_copyable()
sycl::is_device_copyable_v<
oneapi::dpl::unseq_backend::single_match_pred_by_idx<policy_non_device_copyable, noop_device_copyable>>,
"single_match_pred_by_idx is not device copyable with device copyable types");
//single_match_pred
static_assert(
sycl::is_device_copyable_v<
oneapi::dpl::unseq_backend::single_match_pred<policy_non_device_copyable, noop_device_copyable>>,
"single_match_pred is not device copyable with device copyable types");
//multiple_match_pred
static_assert(
sycl::is_device_copyable_v<
Expand Down Expand Up @@ -322,6 +327,11 @@ test_non_device_copyable()
!sycl::is_device_copyable_v<
oneapi::dpl::unseq_backend::single_match_pred_by_idx<policy_non_device_copyable, noop_non_device_copyable>>,
"single_match_pred_by_idx is device copyable with non device copyable types");
//single_match_pred
static_assert(
!sycl::is_device_copyable_v<
oneapi::dpl::unseq_backend::single_match_pred<policy_non_device_copyable, noop_non_device_copyable>>,
"single_match_pred is device copyable with non device copyable types");
//multiple_match_pred
static_assert(
!sycl::is_device_copyable_v<
Expand Down

0 comments on commit d75aaa2

Please sign in to comment.