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

Commit 41e5cb2

Browse files
nicolasvasilacheTheodoros Theodoridis
authored andcommitted
CC::Protobuf -> CC:ProtobufType
1 parent 11375df commit 41e5cb2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tc/core/cuda/cuda_compilation_cache-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void Cache<CC, CachedEntryType>::dumpCacheToProtobuf(
6060
template <typename CC, typename CachedEntryType>
6161
void Cache<CC, CachedEntryType>::loadCacheFromProtobuf(
6262
const std::string& filename) {
63-
typename CC::Protobuf buf;
63+
typename CC::ProtobufType buf;
6464
struct stat buffer = {0};
6565
if (stat(filename.c_str(), &buffer) == 0) {
6666
std::ifstream serialized(filename, std::ios::binary);
@@ -73,7 +73,7 @@ template <typename CC, typename CachedEntryType>
7373
template <typename Protobuf>
7474
void Cache<CC, CachedEntryType>::loadCacheFromProtobuf(const Protobuf& buf) {
7575
static_assert(
76-
std::is_same<Protobuf, typename CC::Protobuf>::value,
76+
std::is_same<Protobuf, typename CC::ProtobufType>::value,
7777
"LoadCacheFromProtobuf called with invalide protobuf type.");
7878
CC::getGlobalSharedCache() = std::make_shared<CC>(buf);
7979
}

tc/core/cuda/cuda_compilation_cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct CudaCachedEntry {
9090
*/
9191
class CudaCache : public Cache<CudaCache, CudaCachedEntry> {
9292
public:
93-
using Protobuf = CudaCacheProto;
93+
using ProtobufType = CudaCacheProto;
9494
using CachedEntry = CudaCachedEntry;
9595
static std::shared_ptr<CudaCache>& getGlobalSharedCache();
9696

@@ -221,7 +221,7 @@ struct OptionsCachedEntry {
221221

222222
class OptionsCache : public Cache<OptionsCache, OptionsCachedEntry> {
223223
public:
224-
using Protobuf = OptionsCacheProto;
224+
using ProtobufType = OptionsCacheProto;
225225
using CachedEntry = OptionsCachedEntry;
226226
static std::shared_ptr<OptionsCache>& getGlobalSharedCache();
227227

@@ -344,7 +344,7 @@ struct ManualCudaCachedEntry {
344344
*/
345345
class ManualCudaCache : public Cache<ManualCudaCache, ManualCudaCachedEntry> {
346346
public:
347-
using Protobuf = ManualCudaCacheProto;
347+
using ProtobufType = ManualCudaCacheProto;
348348
using CachedEntry = ManualCudaCachedEntry;
349349
static std::shared_ptr<ManualCudaCache>& getGlobalSharedCache();
350350

0 commit comments

Comments
 (0)