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

[SYCL] Add tests for ballot_group algorithms #1698

Open
wants to merge 1 commit into
base: intel
Choose a base branch
from

Conversation

Pennycook
Copy link

This commit adds tests for using ballot_group and the following algorithms:

  • group_barrier
  • group_broadcast
  • any_of_group
  • all_of_group
  • none_of_group
  • reduce_over_group
  • exclusive_scan_over_group
  • inclusive_scan_over_group

This commit adds tests for using ballot_group and the following algorithms:
- group_barrier
- group_broadcast
- any_of_group
- all_of_group
- none_of_group
- reduce_over_group
- exclusive_scan_over_group
- inclusive_scan_over_group

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@Pennycook
Copy link
Author

Pennycook commented Mar 27, 2023

@steffenlarsen: Compiling the tests here with the compiler from intel/llvm#8784 works, but specifying -O0 or -fno-sycl-early-optimizations causes things to blow up with a stacktrace. The compiler seems to crash before it finishes dumping the trace.

I get this error:

/llvm/include/llvm/Support/Casting.h:579: decltype(auto) llvm::cast(From*) [with To = llvm::ConstantInt; From = llvm::Value]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

...but I can't figure out which expression it's complaining about.

EDIT: The crash is now occurring in check-sycl, because one of the tests requires -O0. See https://github.com/intel/llvm/actions/runs/4536784113/jobs/7994452272

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.

1 participant