Skip to content

[SYCL-PTX] Add missing async and barrier builtins #1801

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
Jun 5, 2020

Conversation

Naghasan
Copy link
Contributor

@Naghasan Naghasan commented Jun 2, 2020

Add missing async and barrier builtins.

Update the forward declaration to be in sync with the SPIRVBuiltins.td

Signed-off-by: Victor Lomuller [email protected]

@Naghasan Naghasan requested a review from bader as a code owner June 2, 2020 09:00
bader
bader previously approved these changes Jun 2, 2020
@@ -12,6 +12,9 @@
#ifndef CLC_SPIRV_BINDING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file auto-generated? Should we add a comment with instructions how to modify this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is auto-generated,

The PR for the generator is here #1781 and it include a CMake rule to trigger the regeneration if needed. I'll add a warning header to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the update.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Naghasan, unfortunately, I don't see it.
Could you also take a look at CUDA LIT tests? They seem to hang in pre-merge checks.

Copy link
Contributor Author

@Naghasan Naghasan Jun 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I added it to the PR #1781 as it adds the generator. I have not regenerated the file in this PR.

@Naghasan Naghasan force-pushed the victor/spirv-ptx-async branch from 27673e5 to d14e17f Compare June 2, 2020 12:22
@Naghasan
Copy link
Contributor Author

Naghasan commented Jun 2, 2020

@bader I also added a lit infrastructure to libclc. It allows to make sure builtins are emitted as expected locally.

erichkeane
erichkeane previously approved these changes Jun 2, 2020
Copy link
Contributor

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CFE changes look fine, but this is way bigger than that, so this isn't a final approval.

Co-authored-by: Mariya Podchishchaeva <[email protected]>
Copy link
Contributor

@Fznamznon Fznamznon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FE change LG.

Comment on lines +65 to +66
out_fd.write("""
//===----------------------------------------------------------------------===//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
out_fd.write("""
//===----------------------------------------------------------------------===//
out_fd.write("""//===----------------------------------------------------------------------===//

To avoid an empty line in autogenerated tests.

@bader bader merged commit efdd6ef into intel:sycl Jun 5, 2020
@bader bader added the libclc libclc project related issues label Jul 3, 2020
KornevNikita pushed a commit to KornevNikita/llvm that referenced this pull request Feb 20, 2023
…onINTEL (intel#1801)

This PR is regarding spec KhronosGroup/SPIRV-Registry#185

This patch parse the string in a "ptr.annotation" call, extracting buffer location information and create a SPIRV decoration on the pointer using the buffer location information. This applies only on the pointer argument of OpLoad/Opstore

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@9ccf154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libclc libclc project related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants