SWDEV-193956 - [hipclang-vdi-rocm][perf]
~45% to 50% of Performance drop on rocBLAS_int8 test Use the last command in the queue for a wait. Add extra print information about processed commands. Add an option to disable file location printing. Change-Id: I4187883e1a90e571fde3128af98368108fda8785
This commit is contained in:
@@ -86,15 +86,24 @@ bool HostQueue::terminate() {
|
||||
}
|
||||
|
||||
void HostQueue::finish() {
|
||||
// Send a finish to make sure we finished all commands
|
||||
Command* command = new Marker(*this, false);
|
||||
if (command == NULL) {
|
||||
return;
|
||||
Command* command = nullptr;
|
||||
if (IS_HIP) {
|
||||
command = getLastQueuedCommand(false);
|
||||
if (nullptr != command) {
|
||||
command->awaitCompletion();
|
||||
}
|
||||
}
|
||||
if (nullptr == command) {
|
||||
// Send a finish to make sure we finished all commands
|
||||
command = new Marker(*this, false);
|
||||
if (command == NULL) {
|
||||
return;
|
||||
}
|
||||
ClPrint(LOG_DEBUG, LOG_CMD, "marker is queued");
|
||||
command->enqueue();
|
||||
command->awaitCompletion();
|
||||
command->release();
|
||||
}
|
||||
ClPrint(LOG_DEBUG, LOG_CMD, "marker is queued");
|
||||
command->enqueue();
|
||||
command->awaitCompletion();
|
||||
command->release();
|
||||
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished");
|
||||
}
|
||||
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user