Skip to content

Commit

Permalink
Merge pull request #702 from kopylovanat/enable-deduction
Browse files Browse the repository at this point in the history
Enable and fix multi_ptr deduction_guides test
  • Loading branch information
bader authored Jun 21, 2023
2 parents 9855b78 + b0c86ce commit 576455c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/multi_ptr/multi_ptr_deduction_guides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class check_multi_ptr_deduction {
else
acc_t(r, cgh);
auto acc_res = buf_res.get_access(cgh);
cgh.single_task([=] {
cgh.parallel_for(sycl::nd_range<1>({1}, {1}), [=](auto item) {
auto mptr = multi_ptr(_accessor);
acc_res[0] = std::is_same_v<decltype(mptr),
multi_ptr<ElementType, accessor_space,
Expand All @@ -103,11 +103,8 @@ class check_multi_ptr_deduction {
}
};

// FIXME: re-enable when deduction guide for read is implemented
// Issue link https://github.com/intel/llvm/issues/9692
DISABLED_FOR_TEST_CASE(DPCPP)
("multi_ptr deduction guides", "[test_multi_ptr]")({
TEST_CASE("multi_ptr deduction guides", "[test_multi_ptr]") {
for_all_types<check_multi_ptr_deduction>(deduction::vector_types);
for_all_types<check_multi_ptr_deduction>(deduction::scalar_types);
});
}
} // namespace multi_ptr_deduction_guides

0 comments on commit 576455c

Please sign in to comment.