Skip to content

Commit

Permalink
Fix test bug where device allocation is always used for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Michel <[email protected]>
  • Loading branch information
mmichel11 committed Nov 6, 2024
1 parent 74143b2 commit fdf6a39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ run_test_on_device()
if (TestUtils::has_type_support<ValueType>(TestUtils::get_test_queue().get_device()))
{
constexpr sycl::usm::alloc allocation_type = use_device_alloc ? sycl::usm::alloc::device : sycl::usm::alloc::shared;
test4buffers<sycl::usm::alloc::device, test_reduce_by_segment<ValueType, BinaryPredicate, BinaryOperation>>();
test4buffers<allocation_type, test_reduce_by_segment<ValueType, BinaryPredicate, BinaryOperation>>();
}
}
#endif // TEST_DPCPP_BACKEND_PRESENT
Expand Down

0 comments on commit fdf6a39

Please sign in to comment.