File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,6 @@ class CLMLRuntime : public JSONRuntimeBase {
314314 for (size_t i = 0 ; i < this ->layer_ .function .size (); ++i) {
315315 // Make CLML subgraphs accounted by OpenCLTimerNode.
316316
317- // if (workspace->IsProfiling(tentry->device)) {
318317 if (getenv (" CLML_PROFILING" )) {
319318 Timer t;
320319 auto f = Registry::Get (std::string (" profiling.timer.opencl" ));
Original file line number Diff line number Diff line change @@ -526,11 +526,8 @@ class OpenCLTimerNode : public TimerNode {
526526 Device dev_;
527527
528528 void recreateCommandQueue () {
529- if (!cl::OpenCLWorkspace::Global ()->IsProfiling (dev_)) {
530- cl::OpenCLWorkspace::Global ()->EnableQueueProfiling (dev_, true );
531- } else {
532- cl::OpenCLWorkspace::Global ()->EnableQueueProfiling (dev_, false );
533- }
529+ cl::OpenCLWorkspace::Global ()->EnableQueueProfiling (
530+ dev_, !cl::OpenCLWorkspace::Global ()->IsProfiling (dev_));
534531 }
535532};
536533} // namespace runtime
You can’t perform that action at this time.
0 commit comments