Skip to content

[SYCL] Do not remove commands from leaves lists on subuffer creation #1196

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 1 commit into from
Feb 27, 2020

Conversation

romanovvlad
Copy link
Contributor

It's not correct to remove commands from leaves that we are not
depending on.

Signed-off-by: Vlad Romanov [email protected]

Copy link
Contributor

@KarachunIvan KarachunIvan left a comment

Choose a reason for hiding this comment

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

LGTM, but could you please fix the typo in the commit message?
subuffer -> sub-buffer.

@romanovvlad
Copy link
Contributor Author

romanovvlad commented Feb 26, 2020

LGTM, but could you please fix the typo in the commit message?
subuffer -> sub-buffer.

Will fix during merge.

UPD. Updated commit message as I had to rebase the patch anyway.

sergey-semenov
sergey-semenov previously approved these changes Feb 26, 2020
It's not correct to remove commands from leaves that we are not
depending on.

Signed-off-by: Vlad Romanov <[email protected]>
@bader bader merged commit 45e39bd into intel:sycl Feb 27, 2020
bb-sycl pushed a commit that referenced this pull request Jun 1, 2022
As per issue #1196, the loop induction variable, which is an argument
in the omp.wsloop operation, does not have a memory location, so when
passed to a function or subroutine, the reference to the value is not
a memory location, but the value of the induction variable. The callee
function/subroutine is then trying to dereference memory at address 1
or some other "not a good memory location".

This is fixed by creating a temporary memory location and storing the
value of the induction variable in that.

Test fixes as a consequence of the changed code generated.

Add checking for some of the omp-unstructured.f90 to check for alloca,
store and load operations, to ensure the correct flow. Add a test
for CYCLE inside a omp-do loop.

Also convert to use -emit-fir in the omp-unstructrued, and make
the symbol matching consistent in the omp-wsloop-variable test.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D126711
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Feb 23, 2023
This commit removes the host run and any assumptions and operations
related to the host device from the tests in SYCL/AOT.

Signed-off-by: Larsen, Steffen <[email protected]>
Co-authored-by: Sachkov, Alexey <[email protected]>
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