Skip to content

[SYCL] Implement queue::parallel_for() accepting reduction #2682

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

Merged

Conversation

v-klochkov
Copy link
Contributor

This patch extends the functionality provided by similar/other queue::parallel_for() methods
and allows passing reduction to them.

Signed-off-by: Vyacheslav N Klochkov vyacheslav.n.klochkov@intel.com

Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
@v-klochkov v-klochkov requested a review from Pennycook October 24, 2020 05:38
@v-klochkov v-klochkov requested a review from a team as a code owner October 24, 2020 05:38
@v-klochkov v-klochkov requested a review from againull October 24, 2020 05:38
template <typename KernelName = detail::auto_name, typename KernelType,
int Dims, typename Reduction>
event parallel_for(nd_range<Dims> ExecutionRange, Reduction Redu,
_KERNELFUNCPARAM(KernelFunc) _CODELOCPARAM(&CodeLoc)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see you didn't introduce this, but wanted to point out that I think the lack of a comma between these two macro-generated parameters looks really weird.

@againull againull merged commit ffdadc2 into intel:sycl Oct 26, 2020
@v-klochkov v-klochkov deleted the public_vklochkov_reduction_queue_paralle_for branch October 26, 2020 18:12
kbenzie pushed a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
…commandbuffer

Add USMMemcpy to v2 command buffer
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
…ndbuffer

Add USMMemcpy to v2 command buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants