SWDEV-292018 - Avoid marker if queue is empty

Change-Id: I40a42d67d2c911d2c9a0bf425f36bc795f9539c0


[ROCm/clr commit: 6ab8dcc682]
Этот коммит содержится в:
German Andryeyev
2021-06-23 11:41:52 -04:00
коммит произвёл Maneesh Gupta
родитель 6c612d8ce7
Коммит a738f7957b
+4
Просмотреть файл
@@ -107,6 +107,10 @@ void HostQueue::finish() {
Command* command = nullptr;
if (IS_HIP) {
command = getLastQueuedCommand(true);
// Check if the queue has nothing to process and return
if (command == nullptr) {
return;
}
}
if (nullptr == command) {
// Send a finish to make sure we finished all commands