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:
German Andryeyev
2020-02-20 16:24:10 -05:00
vanhempi fea14a7201
commit a66d09f5a3
3 muutettua tiedostoa jossa 36 lisäystä ja 11 poistoa
+17 -8
Näytä tiedosto
@@ -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");
}