Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add tests for user-defined reductions extension #1395

Merged

Conversation

dm-vodopyanov
Copy link

@dm-vodopyanov dm-vodopyanov commented Nov 17, 2022

Spec: intel/llvm#7202
Implementation: intel/llvm#7587

@dm-vodopyanov
Copy link
Author

/verify with intel/llvm#7436

@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner November 21, 2022 15:59
@dm-vodopyanov
Copy link
Author

/verify with intel/llvm#7587

@dm-vodopyanov
Copy link
Author

/verify with intel/llvm#7587

assert(output[3] == std::reduce(input.begin(), input.end(), init, binary_op));
}

int main() {
Copy link

@aelovikov-intel aelovikov-intel Nov 30, 2022

Choose a reason for hiding this comment

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

Please add a test with reduce over sub_group when one (or even several) WG(s) contain(s) several SGs. Might be done in another PR. The main thing I want is to use such a test as an example showing that even for reduce over SG the size of the temporary memory depends on WG size (unless we can allocate private memory for the scratchpad somehow and then use sg shuffles in the implementation).

Comment on lines +123 to +124
InputT *first = in.get_pointer();
InputT *last = first + N;

Choose a reason for hiding this comment

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

Non-pointer iterators seem to be untested still.

dm-vodopyanov added a commit to intel/llvm that referenced this pull request Dec 1, 2022
@dm-vodopyanov dm-vodopyanov merged commit 249e381 into intel:intel Dec 1, 2022
@pvchupin
Copy link

pvchupin commented Dec 1, 2022

@dm-vodopyanov, new test fails on CUDA and HIP . Does it make sense disable it there?

pvchupin pushed a commit to pvchupin/llvm-test-suite that referenced this pull request Dec 1, 2022
Test was just added in
intel#1395
and fails on these platforms
pvchupin pushed a commit that referenced this pull request Dec 1, 2022
Test was just added in
#1395
and fails on these platforms
myler added a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
Auto pulldown and update tc files for xmain-cand branch on 20221117
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants