Skip to content
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

[SYCL][Fusion] Take auxiliary resources from fused command groups #12593

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

victor-eds
Copy link
Contributor

@victor-eds victor-eds commented Feb 2, 2024

Reductions use auxiliary resources to handle reduction temporal
buffers. Assign those auxiliary resources from each fused command
group to the placeholder fusion event. This event will not be marked
as completed after the fused reductions finish execution either if
fusion is completed, cancelled or aborted.

Test is updated to check every algorithm that is selected
automatically by sycl::reduction, i.e., every supported
algorithm. We also cover both cases (fusion taking and not taking
place).

Signed-off-by: Victor Perez victor.perez@codeplay.com

@victor-eds victor-eds self-assigned this Feb 2, 2024
@victor-eds
Copy link
Contributor Author

Depends on #12556 (for test)

Reductions use auxiliary resources to handle reduction temporal
buffers. Assign those auxiliary resources from each fused command
group to the placeholder fusion event. This event will not be marked
as completed after the fused reductions finish execution either if
fusion is completed, cancelled or aborted.

Test is updated to check every algorithm that is selected
automatically by `sycl::reduction`, i.e., every supported
algorithm. We also cover both cases (fusion taking and not taking
place).

Signed-off-by: Victor Perez <victor.perez@codeplay.com>
@victor-eds victor-eds marked this pull request as ready for review February 6, 2024 16:08
@victor-eds victor-eds requested review from a team as code owners February 6, 2024 16:08
@victor-eds victor-eds marked this pull request as draft February 6, 2024 16:26
@victor-eds victor-eds marked this pull request as ready for review February 6, 2024 16:34
Copy link
Contributor

@sommerlukas sommerlukas left a comment

Choose a reason for hiding this comment

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

Just one nit.

@sommerlukas sommerlukas merged commit c320f3b into sycl Feb 7, 2024
12 checks passed
@sommerlukas sommerlukas deleted the reduction-fix branch February 7, 2024 16:02
@sommerlukas
Copy link
Contributor

Related failure of post-commit:

Timed Out Tests (1):
  SYCL :: KernelFusion/Reduction/group_reduce_and_last_wg_detection.cpp

https://github.com/intel/llvm/actions/runs/7817537968/job/21327112200

#12621 should fix this issue.

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