Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 2ab48f8

Browse files
rtcFun -> rtcFunction
1 parent 1da2537 commit 2ab48f8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

include/tc/core/cpu/cpu_tc_executor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class CpuTcExecutor : public ::tc::TcExecutor {
8686
const std::vector<void*>& outputs) const;
8787

8888
bool hasRuntimeCompiledFunction() override {
89-
return rtcFun.get() != nullptr;
89+
return rtcFunction.get() != nullptr;
9090
}
9191

9292
// It is necessary to clear the RTC manually because it can throw and we
@@ -95,7 +95,7 @@ class CpuTcExecutor : public ::tc::TcExecutor {
9595
if (!hasRuntimeCompiledFunction()) {
9696
return;
9797
}
98-
rtcFun->clear();
98+
rtcFunction->clear();
9999
}
100100

101101
std::string kernelName() const {
@@ -110,7 +110,7 @@ class CpuTcExecutor : public ::tc::TcExecutor {
110110
std::string cpuSource;
111111

112112
protected:
113-
std::shared_ptr<CpuRTCFunction> rtcFun;
113+
std::shared_ptr<CpuRTCFunction> rtcFunction;
114114
};
115115

116116
} // namespace tc

include/tc/core/execution_engine-inl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ size_t ExecutionEngine<ExecutorType>::compile(
114114
return handle;
115115
}
116116

117-
// Steal ExecutorType and give it back under lock
117+
// Steal the executor instance and give it back under lock.
118118
// Run outside of lock on owning ExecutorType.
119119
template <typename ExecutorType>
120120
Duration ExecutionEngine<ExecutorType>::run(
@@ -188,6 +188,7 @@ void ExecutionEngine<ExecutorType>::uncheckedRun(
188188
}
189189
}
190190
}
191+
191192
// Clear the underlying RTC object and executor under lock.
192193
template <typename ExecutorType>
193194
void ExecutionEngine<ExecutorType>::clear(size_t handle) {

src/core/cpu/cpu_tc_executor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Duration CpuTcExecutor::run(
3939
const std::vector<const DLTensor*>& inputs,
4040
const std::vector<DLTensor*>& outputs,
4141
bool profile) const {
42-
CHECK(rtcFun) << "Can't launch uncompiled: " << executionInfo_.kernelName;
42+
CHECK(rtcFunction) << "Can't launch uncompiled: "
43+
<< executionInfo_.kernelName;
4344
CHECK_NE(executionInfo_.options, "");
4445
checkSizesAndStridesAreCompliant(
4546
inputs, executionInfo_.inputsInfo, halideComponents_.getDef().params());

0 commit comments

Comments
 (0)