Skip to content

Commit 535d1e0

Browse files
committed
* review comments
1 parent 7e77a7e commit 535d1e0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/runtime/contrib/clml/clml_runtime.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"));

src/runtime/opencl/opencl_common.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)