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

Commit e2339ff

Browse files
authored
Merge pull request #143 from facebookresearch/explicit-warn
Explicitly denote message is a warning
2 parents 095b0c3 + 73ad805 commit e2339ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/tc/core/compilation_cache-inl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ auto CudaCache::searchKernelImpl(
114114
});
115115
if (it != c.entries_.end()) {
116116
if (it->key.gitVersion != tc::git_version) {
117-
std::cerr << "Proto version doesn't match. TC git version is: "
117+
std::cerr << "[WARNING] Proto version doesn't match. TC git version is: "
118118
<< tc::git_version
119119
<< " and Proto version is: " << it->key.gitVersion
120120
<< " .This proto might be incompatible"
@@ -143,7 +143,7 @@ auto OptionsCache::searchKernelImpl(
143143
});
144144
if (it != c.entries_.end()) {
145145
if (it->key.gitVersion != tc::git_version) {
146-
std::cerr << "Proto version doesn't match. TC git version is: "
146+
std::cerr << "[WARNING] Proto version doesn't match. TC git version is: "
147147
<< tc::git_version
148148
<< " and Proto version is: " << it->key.gitVersion
149149
<< " .This proto might be incompatible"
@@ -174,7 +174,7 @@ auto ManualCudaCache::searchKernelImpl(
174174
if (it != c.entries_.end()) {
175175
std::cout << "RETURNING IT: " << it->key.gitVersion << std::endl;
176176
if (it->key.gitVersion != tc::git_version) {
177-
std::cerr << "Proto version doesn't match. TC git version is: "
177+
std::cerr << "[WARNING] Proto version doesn't match. TC git version is: "
178178
<< tc::git_version
179179
<< " and Proto version is: " << it->key.gitVersion
180180
<< " .This proto might be incompatible"

0 commit comments

Comments
 (0)