Skip to content

[SYCL][CUDA] Swapped bf16 builtins with inline asm. #10695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

JackAKirk
Copy link
Contributor

A recent pulldown had to revert this commit llvm/llvm-project@250f2bb
The reason for this is that SYCL runtime uses uint16_t as the storage type for bfloat16 and this commit uses __bf16 instead.

Eventually we plan to fully support the __bf16 type in SYCL runtime: see this discussion: #10457.
But until __bf16 support is added it is easy for us to instead use inline asm operating on uint16_t in the nvptx backend.
This PR makes this change. When this PR is merged llvm/llvm-project@250f2bb can be safely pulled down.

Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
@JackAKirk JackAKirk requested review from a team as code owners August 4, 2023 16:39
@JackAKirk JackAKirk temporarily deployed to aws August 4, 2023 16:50 — with GitHub Actions Inactive
@JackAKirk JackAKirk temporarily deployed to aws August 4, 2023 17:30 — with GitHub Actions Inactive
Improved formating.

Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
@JackAKirk JackAKirk temporarily deployed to aws August 9, 2023 16:33 — with GitHub Actions Inactive
@bader
Copy link
Contributor

bader commented Aug 29, 2023

@JackAKirk, please, merge tip of the sycl branch to update CI checks status.

@bader bader self-assigned this Aug 29, 2023
@bader
Copy link
Contributor

bader commented Aug 29, 2023

Failed Tests (2):
SYCL :: AtomicRef/min_local.cpp
SYCL :: SpecConstants/2020/host_apis.cpp

Memory access fault by GPU node-1 (Agent handle: 0x1b69630) on address 0x7fcfc6c00000. Reason: Page not present or supervisor privilege.

The issue is not related to the patch and reported in #10460.

@bader bader merged commit d0ebfc3 into intel:sycl Aug 29, 2023
steffenlarsen pushed a commit that referenced this pull request Sep 5, 2023
This reverts commit bfc1956.

With workaround landed in #10695, we
should be able to reland the community commit
llvm/llvm-project@250f2bb
now. This revert the revert to reland it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants