Skip to content

Commit

Permalink
[SYCL] Fix marray math function impls (#6038)
Browse files Browse the repository at this point in the history
This PR aims to fix issue: #5991
and provide efficient working marray math function implementations for
all backends.

marray math function support is currently switched on for {n} ({n}
defined in #5991) but the implementations are currently broken and
untested. There is also very limited test coverage for sycl::vec cases.
The SYCL 2020 specification states that the set {N} ({N} defined in
#5991) should be supported for marray math function cases.

All SYCL 2020 math, native math, and half_precision math functions now
have marray support when the function's arguments are of type `genfloat`
and have the same argument type for all arguments.

Tests: intel/llvm-test-suite#1002

Signed-off-by: jack.kirk <jack.kirk@codeplay.com>
Co-authored-by: JackAKirk <chezjakirk@gmail.com>
Co-authored-by: Jakub Chlanda <jakub@codeplay.com>
  • Loading branch information
3 people authored Dec 2, 2022
1 parent b540f81 commit 73a992b
Show file tree
Hide file tree
Showing 7 changed files with 775 additions and 304 deletions.
Loading

0 comments on commit 73a992b

Please sign in to comment.