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

Commit 45ca22e

Browse files
authored
Merge pull request #524 from facebookresearch/shut-up-warnings
Shut up some -Wsign-compare warnings
2 parents a50ac5f + 46bd820 commit 45ca22e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ if (WITH_CAFFE2 AND WITH_CUDA)
315315
message(STATUS "Found, CAFFE2_INCLUDE_DIR: " ${CAFFE2_INCLUDE_DIR})
316316

317317
add_definitions(-DCAFFE2_USE_GOOGLE_GLOG)
318-
include_directories(AFTER ${EIGEN_INCLUDE_DIR})
319-
include_directories(AFTER ${CAFFE2_INCLUDE_DIR})
318+
include_directories(AFTER SYSTEM ${EIGEN_INCLUDE_DIR})
319+
include_directories(AFTER SYSTEM ${CAFFE2_INCLUDE_DIR})
320320
add_subdirectory(tc/c2)
321321
add_subdirectory(tc/benchmarks)
322322
add_subdirectory(test/caffe2)

tc/benchmarks/MLP_model.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ void ProductionModel::runATen1LUT() {
286286
}
287287

288288
void ProductionModel::run2LUT(const tc::CudaMappingOptions& options) {
289-
TC_CHECK_LT(0, E1);
290-
TC_CHECK_LT(0, E2);
289+
TC_CHECK_LT(0u, E1);
290+
TC_CHECK_LT(0u, E2);
291291
auto ws_init_func = [=](Workspace& w) {
292292
AddDeterministicallyRandomInput<caffe2::CUDABackend, float>(
293293
w, {E1, D}, "LUT1");

tc/benchmarks/benchmark_fixture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ struct Benchmark : public ::testing::Test {
6565
void SetUp() {
6666
if (!FLAGS_disable_version_checks) {
6767
auto cudnnVersion = cudnnGetVersion();
68-
TC_CHECK_LE(6021, cudnnVersion)
68+
TC_CHECK_LE(6021u, cudnnVersion)
6969
<< "[CUDNN][VERSION] Enforce version compatibility check";
7070

7171
auto cudaRtVersion = cudnnGetCudartVersion();
72-
TC_CHECK_LE(8000, cudaRtVersion)
72+
TC_CHECK_LE(8000u, cudaRtVersion)
7373
<< "[CUDART][VERSION] Enforce version compatibility check";
7474

7575
int cublasVersion;

0 commit comments

Comments
 (0)