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

Commit 85ff857

Browse files
Non-public member cacheKeyId -> cacheKeyId_
1 parent 981c27a commit 85ff857

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/tc/core/tc_executor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TcExecutor {
124124

125125
tc2halide::HalideComponents halideComponents_;
126126
lang::TreeRef tcTree_;
127-
lang::CanonicalTcString cacheKeyId;
127+
lang::CanonicalTcString cacheKeyId_;
128128
};
129129

130130
// templating to match both const and non-const DLTensor pointers

src/core/cuda/cuda_tc_executor.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void CudaTcExecutor::compile(const tc::CudaMappingOptions& options) {
5656
auto cachedOp = [&]() -> std::unique_ptr<CudaCache::RetrievalResult> {
5757
if (ManualCudaCache::cacheEnabled()) {
5858
auto rr = ManualCudaCache::getCache()->retrieveKernel(
59-
cacheKeyId,
59+
cacheKeyId_,
6060
extractRawPtrs(executionInfo_.inputsInfo),
6161
extractRawPtrs(executionInfo_.outputsInfo));
6262
if (rr) {
@@ -71,7 +71,7 @@ void CudaTcExecutor::compile(const tc::CudaMappingOptions& options) {
7171
<< "options string is empty, are you trying compile "
7272
<< "a dummy CudaTcExecutor?";
7373
return CudaCache::getCache()->retrieveKernel(
74-
cacheKeyId,
74+
cacheKeyId_,
7575
options,
7676
extractRawPtrs(executionInfo_.inputsInfo),
7777
extractRawPtrs(executionInfo_.outputsInfo));
@@ -93,7 +93,7 @@ void CudaTcExecutor::compile(const tc::CudaMappingOptions& options) {
9393
LOG_IF(INFO, FLAGS_debug_tc_mapper) << "original grid: " << grid;
9494
LOG_IF(INFO, FLAGS_debug_tc_mapper) << "original block: " << block;
9595
CudaCache::getCache()->cacheKernel(
96-
cacheKeyId,
96+
cacheKeyId_,
9797
options,
9898
extractRawPtrs(executionInfo_.inputsInfo),
9999
extractRawPtrs(executionInfo_.outputsInfo),
@@ -212,7 +212,7 @@ Duration CudaTcExecutor::run(
212212
profile);
213213
if (profile and OptionsCache::cacheEnabled()) {
214214
OptionsCache::getCache()->recordRuntime(
215-
cacheKeyId,
215+
cacheKeyId_,
216216
CudaMappingOptions(executionInfo_.options),
217217
inputs,
218218
constPtrs(outputs),

src/core/tc_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TcExecutor::TcExecutor(
4141
inputsInfo(dlutils::makeDLTensorVector(inputsInfo)),
4242
options(options),
4343
tcTree_(tcDefinition),
44-
cacheKeyId(lang::canonicalTc(tcDefinition)) {
44+
cacheKeyId_(lang::canonicalTc(tcDefinition)) {
4545
executionInfo_.kernelName = lang::Def(tcTree_).name().name();
4646
halideComponents_ =
4747
tc2halide::translate(isl::with_exceptions::globalIslCtx(), tcTree_);

0 commit comments

Comments
 (0)