SWDEV-252150 - No need to send a Marker if the event is completed in Event::notifyCmdQueue()
Change-Id: Iaa1c550ce0849c12298a24812604345dbf877a5e
[ROCm/clr commit: c5184d61b4]
Tá an tiomantas seo le fáil i:
tiomanta ag
Jason Tang
tuismitheoir
7457150c80
tiomantas
40e6b4c685
@@ -212,7 +212,7 @@ bool Event::awaitCompletion() {
|
||||
|
||||
bool Event::notifyCmdQueue() {
|
||||
HostQueue* queue = command().queue();
|
||||
if ((NULL != queue) && !notified_.test_and_set()) {
|
||||
if ((status() > CL_COMPLETE) && (NULL != queue) && !notified_.test_and_set()) {
|
||||
// Make sure the queue is draining the enqueued commands.
|
||||
amd::Command* command = new amd::Marker(*queue, false, nullWaitList, this);
|
||||
if (command == NULL) {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir