Honor hipEventDisableTiming event flag

Change-Id: Ia949db96e81b9af467f04ab40d143e8d6faa9394
Este cometimento está contido em:
Saleel Kudchadker cometeu 2020-12-09 15:10:18 -05:00
1 ascendente 24b997119f
cometimento 08a65054ea
3 ficheiros modificados
+10 -10

Não existem ficheiros que correspondam à sua pesquisa

+2 -1
Ver ficheiro
@@ -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();
}