-
Notifications
You must be signed in to change notification settings - Fork 131
Conversation
Tests the following: - Only spans with static extents are available - Kernels with a single reduction span work - Kernels with a reduction pack containing a span work Signed-off-by: John Pennycook <john.pennycook@intel.com>
Q.parallel_for(range<1>{N}, [=](id<1> I) { Output[I] = Identity; }).wait(); | ||
|
||
// Perform generalized "histogram" with N bins | ||
// TODO: Test Q.parallel_for when code_location is fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The q.parallel_for issue is already resolved: intel/llvm#4352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks. I've updated the test to run with both handler and queue in 1c63fab.
SYCL/Reduction/reduction_span.cpp
Outdated
// `Group algorithms are not supported on host device.` on Nvidia. | ||
// XFAIL: hip_nvidia | ||
|
||
// TODO: test disabled due to sporadic fails in level_zero:gpu RT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe try turning it on initially? I see many fixes and attempts to fix/address those sporadic fails are done, but I did not see tests to be enabled after that.
We can disable the test when/if it starts failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I've reenabled these tests for now; see a7eb1e1.
The tests are good. |
Signed-off-by: John Pennycook <john.pennycook@intel.com>
test<16, int, std::plus<int>, sycl::nd_range<1>, submission_mode::handler>( | ||
Q, {24, 8}, 0, 1); | ||
test<16, float, std::plus<float>, sycl::nd_range<1>, | ||
submission_mode::handler>(Q, {24, 8}, 0, 1); | ||
test<16, int, std::multiplies<int>, sycl::nd_range<1>, | ||
submission_mode::handler>(Q, {24, 8}, 1, 2); | ||
test<16, int, std::bit_or<int>, sycl::nd_range<1>, submission_mode::handler>( | ||
Q, {24, 8}, 0, 1); | ||
test<16, CustomType, CustomBinaryOperation, sycl::nd_range<1>, | ||
submission_mode::handler>(Q, {24, 8}, CustomType{0}, CustomType{1}); | ||
test<16, int, std::plus<int>, sycl::nd_range<1>, submission_mode::queue>( | ||
Q, {24, 8}, 0, 1); | ||
test<16, float, std::plus<float>, sycl::nd_range<1>, submission_mode::queue>( | ||
Q, {24, 8}, 0, 1); | ||
test<16, int, std::multiplies<int>, sycl::nd_range<1>, | ||
submission_mode::queue>(Q, {24, 8}, 1, 2); | ||
test<16, int, std::bit_or<int>, sycl::nd_range<1>, submission_mode::queue>( | ||
Q, {24, 8}, 0, 1); | ||
test<16, CustomType, CustomBinaryOperation, sycl::nd_range<1>, | ||
submission_mode::queue>(Q, {24, 8}, CustomType{0}, CustomType{1}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment:
It seems like the lines 204-213 and 214-223 have only 1 difference - the submission_mode.
If so, it could be easier/shorter to add 2 lines near the line 182, i.e.
template <size_t N, typename T, typename BinaryOperation, typename Range>
void test(queue Q, Range Rng, T Identity, T Value) {
test1<N, T, BinaryOperation, Range, submission_mode::handler>(Q, Rng, Identity, Value);
test2<N, T, BinaryOperation, Range, , submission_mode::handler>(Q, Rng, Identity, Value);
test1<N, T, BinaryOperation, Range, , submission_mode::queue>(Q, Rng, Identity, Value);
test2<N, T, BinaryOperation, Range, submission_mode::queue>(Q, Rng, Identity, Value);
}
* [SYCL] Add tests for span reductions Tests the following: - Only spans with static extents are available - Kernels with a single reduction span work - Kernels with a reduction pack containing a span work * [SYCL] Reenable sporadically failing tests
* [SYCL] Add tests for span reductions Tests the following: - Only spans with static extents are available - Kernels with a single reduction span work - Kernels with a reduction pack containing a span work * [SYCL] Reenable sporadically failing tests
Tests the following:
Tests intel/llvm#6019
Signed-off-by: John Pennycook john.pennycook@intel.com