-
Notifications
You must be signed in to change notification settings - Fork 92
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
The compiler produce invalid spirv with enabled PhysicalPointerArgsPass. #1418
Conversation
ae40adf
to
75101bd
Compare
@alan-baker and @rjodinchr, do you any inputs for @AlexDemydenko on this issue/PR? |
What kinds of errors? When I run:
The resulting binary passes spirv-val. What command line are you using? |
This is at least missing a test I would say. |
Command line from the clvk driver:
Error from spirv-val:
|
75101bd
to
ecf4319
Compare
ping |
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.
Could you also add another test using clspv-opt
targeting the replace-pointer-bitcast
pass only.
Thank you
0c0e0a6
to
9623090
Compare
@rjodinchr and @alan-baker any further inputs for @AlexDemydenko here? |
Maybe you have missed my comment from last month: #1418 (review) |
9623090
to
692cb51
Compare
@rjodinchr believe @AlexDemydenko did answer (#1418 (comment)). Please confirm if thats what you wanted or no. |
At the moment, both added tests are not passing (on every bots). Please make sure they are passing using ToT. |
692cb51
to
00a6bed
Compare
00a6bed
to
0180e71
Compare
@@ -0,0 +1,31 @@ | |||
; RUN: clspv-opt %s -o %t.ll --passes=replace-pointer-bitcast |
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.
That test is passing even without your fix, so it is not testing what you expect.
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.
A new version physical_pointers_vector-swizzle.ll has been uploaded, which only passes with a fix.
@@ -0,0 +1,22 @@ | |||
// RUN: clspv %s -o %t.spv -cl-std=CL3.0 -no-8bit-storage=pushconstant -no-16bit-storage=pushconstant -spv-version=1.6 -arch=spir64 -physical-storage-buffers |
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.
That test is still not passing (with or without the fix)
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.
A new version physical_pointers_vector-swizzle.cl has been uploaded
Please run the tests locally and make sure they fail without the fix and pass with it |
0180e71
to
fb8db1f
Compare
The tool spirv-val return errors for some spirv binaries.
fb8db1f
to
1effb18
Compare
I had a closer look at the PR. I don't think this is the right way to deal with that issue. |
Yes, you propose works for me. |
The tool spirv-val return errors for some spirv binaries.
The test list with OpenCL-CTS:
Kernel example:
vector-swizzle.txt