-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Test to check dependency chain for in-order queue between usm&host tasks #1283
Conversation
/verify with intel/llvm#6840 |
…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); |
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.
minor comment: could we have a constant for size instead raw value in test?
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.
Fixed.
}); | ||
Q.wait(); | ||
|
||
int Error = (Z[99] != 196) ? 1 : 0; |
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.
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.
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.
Good call, fixed.
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.
Sorry for abandoning this for a while.
int main() { | ||
queue Q{property::queue::in_order()}; | ||
|
||
int *X = malloc_host<int>(100, Q); |
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.
Fixed.
}); | ||
Q.wait(); | ||
|
||
int Error = (Z[99] != 196) ? 1 : 0; |
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.
Good call, fixed.
@KseniyaTikhomirova please review this after addressing your concerns. |
Test for intel/llvm#6840