MCPcopy Create free account
hub / github.com/ROCm/clr / IsActivityEnabledAndCommit

Function IsActivityEnabledAndCommit

rocclr/platform/command.cpp:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298const Event::EventWaitList Event::nullWaitList(0);
299
300static bool IsActivityEnabledAndCommit(cl_command_type type) {
301 auto op = amd::activity_prof::OperationId(type);
302 if (amd::activity_prof::IsEnabled(op)) {
303 amd::activity_prof::CommitRecord(op);
304 return true;
305 }
306 return false;
307}
308
309// ================================================================================================
310Command::Command(HostQueue& queue, cl_command_type type, const EventWaitList& eventWaitList,

Callers 1

CommandMethod · 0.85

Calls 3

OperationIdFunction · 0.85
IsEnabledFunction · 0.85
CommitRecordFunction · 0.85

Tested by

no test coverage detected