-
Notifications
You must be signed in to change notification settings - Fork 788
[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
Conversation
@@ -12,6 +12,9 @@ | |||
#ifndef CLC_SPIRV_BINDING |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Signed-off-by: Victor Lomuller <[email protected]>
Signed-off-by: Victor Lomuller <[email protected]>
27673e5
to
d14e17f
Compare
@bader I also added a lit infrastructure to libclc. It allows to make sure builtins are emitted as expected locally. |
There was a problem hiding this 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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FE change LG.
out_fd.write(""" | ||
//===----------------------------------------------------------------------===// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out_fd.write(""" | |
//===----------------------------------------------------------------------===// | |
out_fd.write("""//===----------------------------------------------------------------------===// |
To avoid an empty line in autogenerated tests.
…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
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]