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

Commit a9f9a11

Browse files
nicolasvasilacheTheodoros Theodoridis
authored andcommitted
Inline removeFromCudaCacheEntriesNotInOptionsCache
1 parent 67f559c commit a9f9a11

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tc/core/cuda/cuda_compilation_cache.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,4 @@ std::unique_ptr<ManualCudaCacheRetrievalResult> ManualCudaCache::retrieveKernel(
618618
entry->values.grid,
619619
entry->values.block});
620620
}
621-
622-
void removeFromCudaCacheEntriesNotInOptionsCache(
623-
CudaCache& cc,
624-
const OptionsCache& oc) {
625-
cc.removeEntriesNotInOptionsCache(oc);
626-
}
627621
} // namespace tc

tc/core/cuda/cuda_compilation_cache.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,11 @@ class ManualCudaCache : public Cache<ManualCudaCache, ManualCudaCachedEntry> {
306306
const std::vector<const DLTensor*>& outputs) const;
307307
};
308308

309-
void removeFromCudaCacheEntriesNotInOptionsCache(
309+
inline void removeFromCudaCacheEntriesNotInOptionsCache(
310310
CudaCache& cc,
311-
const OptionsCache& oc);
311+
const OptionsCache& oc) {
312+
cc.removeEntriesNotInOptionsCache(oc);
313+
}
312314
} // namespace tc
313315

314316
#include "tc/core/cuda/cuda_compilation_cache-inl.h"

0 commit comments

Comments
 (0)