Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Conversation

againull
Copy link

@againull againull commented Sep 21, 2022

Test for intel/llvm#6840

@againull
Copy link
Author

/verify with intel/llvm#6840

againull added a commit to intel/llvm that referenced this pull request Sep 22, 2022
…sks (#6840)

Currently last event is not updated for usm commands, so dependency
chain is incorrect if usm commands are interleaved with host tasks. Also
we need to wait if the last event is associated with host task before
submitting usm command.

E2E test: intel/llvm-test-suite#1283
int main() {
queue Q{property::queue::in_order()};

int *X = malloc_host<int>(100, Q);

Choose a reason for hiding this comment

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

minor comment: could we have a constant for size instead raw value in test?

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

});
Q.wait();

int Error = (Z[99] != 196) ? 1 : 0;

Choose a reason for hiding this comment

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

I guess it should check if host task waits till usm operation completion but could we also check the reverse case? I see that you fill X with values using host task and than overwrite it many times with usm operations but never check and result in final check is also not dependent on it.

Copy link
Author

Choose a reason for hiding this comment

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

Good call, fixed.

Copy link
Author

@againull againull left a comment

Choose a reason for hiding this comment

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

Sorry for abandoning this for a while.

int main() {
queue Q{property::queue::in_order()};

int *X = malloc_host<int>(100, Q);
Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

});
Q.wait();

int Error = (Z[99] != 196) ? 1 : 0;
Copy link
Author

Choose a reason for hiding this comment

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

Good call, fixed.

@againull
Copy link
Author

@KseniyaTikhomirova please review this after addressing your concerns.

@againull againull merged commit 2aa0ac1 into intel:intel Dec 13, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants