Skip to content

[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

Merged
merged 16 commits into from
Jan 26, 2022
Merged

[SYCL] Update image accessor constructor #5312

merged 16 commits into from
Jan 26, 2022

Conversation

IgorKharchikov
Copy link
Contributor

Changed image_accessor() constructor from "= default" to user defined to make it possible to use const references in parallel_for.

Redefinition of default constructor image_accessor() (previously used "= default") to make it possible to use const references in parallel_for.
@IgorKharchikov IgorKharchikov requested a review from a team as a code owner January 14, 2022 18:38
Reduced ad hoc test file.
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"
@IgorKharchikov IgorKharchikov requested a review from bader January 18, 2022 13:10
Reduced test file so it contains only func() function, edited commented line for test running.
Edited commented line for testing, corrected typos in code.
bader
bader previously approved these changes Jan 18, 2022
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM.

@IgorKharchikov
Copy link
Contributor Author

It appears, that new test always fails, I'm starting to investigate the problem.

@bader
Copy link
Contributor

bader commented Jan 18, 2022

Cool. It seems we found an ICE in the SYCL front-end compiler. @intel/dpcpp-cfe-reviewers, could you take a look, please?

@IgorKharchikov
Copy link
Contributor Author

Problem appears to be connected with SYCL_EXTERNAL, I'm currently in process of familiarizing with theory around it's appliance.

@bader
Copy link
Contributor

bader commented Jan 18, 2022

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.

@premanandrao
Copy link
Contributor

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.

@bader
Copy link
Contributor

bader commented Jan 20, 2022

@premanandrao, thanks for letting us know.
@IgorKharchikov, please, update your branch to check if this problem is fixed.

@IgorKharchikov
Copy link
Contributor Author

@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).
vladimirlaz
vladimirlaz previously approved these changes Jan 25, 2022
@vladimirlaz vladimirlaz requested a review from bader January 25, 2022 08:07
@bader
Copy link
Contributor

bader commented Jan 25, 2022

@bader, thanks, a merge was performed, but the problem still exists, though error messages are new. I'm starting to investigate them.

The test still uses "heavy" parallel_for. What is the status of the problem with using SYCL_EXTERNAL? Has it been resolved?

@IgorKharchikov
Copy link
Contributor Author

@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.

@bader
Copy link
Contributor

bader commented Jan 25, 2022

@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 bader changed the title [SYCL] Updated image accessor constructor [SYCL] Update image accessor constructor Jan 25, 2022
@IgorKharchikov
Copy link
Contributor Author

@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.

@bader bader requested review from bader and vladimirlaz January 25, 2022 17:56
@bader bader merged commit 3070b95 into intel:sycl Jan 26, 2022
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.

4 participants