-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Update image accessor constructor #5312
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
Redefinition of default constructor image_accessor() (previously used "= default") to make it possible to use const references in parallel_for.
Reduced ad hoc test file.
Fixed typo
Rewrite of RUN part.
Created new test for fixed issue with mismatched namespace for ctz function.
[SYCL]Created regression test for ctz fix
…ed_tests Revert "[SYCL]Created regression test for ctz fix"
Reduced test file so it contains only func() function, edited commented line for test running.
Edited commented line for testing, corrected typos in code.
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.
Thanks. LGTM.
It appears, that new test always fails, I'm starting to investigate the problem. |
Cool. It seems we found an ICE in the SYCL front-end compiler. @intel/dpcpp-cfe-reviewers, could you take a look, please? |
Problem appears to be connected with SYCL_EXTERNAL, I'm currently in process of familiarizing with theory around it's appliance. |
I don't see any problems with using SYCL_EXTERNAL here. Anyway the compiler should not crash, but give an error message if SYCL_EXTERNAL usage is incorrect. |
I believe @Fznamznon just fixed this with PR #5342. |
@premanandrao, thanks for letting us know. |
@bader, thanks, a merge was performed, but the problem still exists, though error messages are new. I'm starting to investigate them. |
Removed SYCL_EXTERNAL attribute due to it's unnecessity in this test (parallel_for is used here).
The test still uses "heavy" |
@bader, parallel_for was mentioned in the ticket and an ad hoc reproducer, so I decided to add it for visibility of test, as for SYCL_EXTERNAL, it appeared to be redundant here and it was causing conflicts with parallel_for. |
Is parallel_for required to reproduce the issue? It doesn't look like a source of the problem. Right? |
@bader, in fact, parallel_for was not causing any issues, I understand your demand, the change was applied in the last commit, thanks for help in understanding of writing a succinct test. |
Co-authored-by: Alexey Bader <[email protected]>
Changed image_accessor() constructor from "= default" to user defined to make it possible to use const references in parallel_for.