Commit b925bd8
authored
[SYCL] Add
This PR
1. Updates extension to add math builtins for `vec<bfloat16>` and
corresponding swizzles.
2. Implements **unoptimized** support for `vec<bloat16>`/swizzles in
math builtins and adds a test case for the same.
3. Adds a test to check the device code generated for `vec<bloat16>`
math builtins.
I will make a follow-up PR to optimize `vec<bfloat16>` math builtins. I
think we can use elementwise builtins for `ext_vector_type`
(https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors)
to optimize `vec<bfloat16>` math builtins. The device code test case
will help visualizing/reviewing math builtin optimizations.vec<bfloat16> support to math builtins (#14002)1 parent e51a90a commit b925bd8
File tree
4 files changed
+1150
-97
lines changed- sycl
- doc/extensions/experimental
- include/sycl/ext/oneapi/experimental
- test-e2e/BFloat16
- test/check_device_code/vector
4 files changed
+1150
-97
lines changed
0 commit comments