Honor hipEventDisableTiming event flag

Change-Id: Ia949db96e81b9af467f04ab40d143e8d6faa9394
Tá an tiomantas seo le fáil i:
Saleel Kudchadker
2020-12-07 00:00:58 -08:00
tuismitheoir d056171a20
tiomantas 6da16e90d2
D'athraigh 3 comhad le 10 breiseanna agus 10 scriosta
+2 -1
Féach ar an gComhad
@@ -146,7 +146,8 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record)
// If lastQueuedCommand is user invisible command(command->type() == 0),
// Always submit a marker if queue profiling is not explicitly enabled else
// submit a normal marker. Disable queue flush to batch commands
if (!queue->properties().test(CL_QUEUE_PROFILING_ENABLE)) {
if (!queue->properties().test(CL_QUEUE_PROFILING_ENABLE) &&
!(flags & hipEventDisableTiming)) {
if (command != nullptr) {
command->release();
}