Skip to content

Commit b925bd8

Browse files
[SYCL] Add vec<bfloat16> support to math builtins (#14002)
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.
1 parent e51a90a commit b925bd8

File tree

4 files changed

+1150
-97
lines changed

4 files changed

+1150
-97
lines changed

0 commit comments

Comments
 (0)