-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PROTOTYPE] Add fallback to legacy scan implementation for CPU devices and devices that lack size 32 sub-groups #1749
Changes from 25 commits
1eaaf7d
e7a909c
b8c08c1
40b5f02
4ae5144
a3034de
83ac2c8
e16a5af
d90a348
7f2dca1
61295cf
0938b5c
6585460
33d816d
c155b58
23f7886
bd971db
5337317
e60aa75
f2037cc
ce98569
8a0a7a9
e768892
7b69c66
e11df04
ef96d5a
5942d73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,6 +20,7 @@ | |||||
#include <memory> | ||||||
#include <type_traits> | ||||||
#include <tuple> | ||||||
#include <algorithm> | ||||||
|
||||||
#include "../../iterator_impl.h" | ||||||
|
||||||
|
@@ -769,6 +770,15 @@ class __static_monotonic_dispatcher<::std::integer_sequence<::std::uint16_t, _X, | |||||
} | ||||||
}; | ||||||
|
||||||
template <typename _ExecutionPolicy, typename _SizeType> | ||||||
bool | ||||||
__supports_sub_group_size(const _ExecutionPolicy& __exec, _SizeType __target_size) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the only usage of
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. I've added this and removed the |
||||||
{ | ||||||
const auto __subgroup_sizes = __exec.queue().get_device().template get_info<sycl::info::device::sub_group_sizes>(); | ||||||
return std::find(__subgroup_sizes.begin(), __subgroup_sizes.end(), static_cast<std::size_t>(__target_size)) != | ||||||
__subgroup_sizes.end(); | ||||||
} | ||||||
|
||||||
} // namespace __par_backend_hetero | ||||||
} // namespace dpl | ||||||
} // namespace oneapi | ||||||
|
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.
::std
->std
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.
Done