SWDEV-292018 - Avoid marker if queue is empty
Change-Id: I40a42d67d2c911d2c9a0bf425f36bc795f9539c0
[ROCm/clr commit: 6ab8dcc682]
This commit is contained in:
committed by
Maneesh Gupta
parent
6c612d8ce7
commit
a738f7957b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user