diff options
author | Yangqing Jia <jiayq84@gmail.com> | 2015-07-23 20:12:35 -0700 |
---|---|---|
committer | Yangqing Jia <jiayq84@gmail.com> | 2015-07-23 20:12:35 -0700 |
commit | a6d20495c24335da05a7dda271c747b6fd55c36a (patch) | |
tree | 00579e04e29370141f5fcbe837b55b3bfe1a9f8a /caffe2/mpi | |
parent | 532670cce0f1acf3d3fcc98a9a1c26f5428e184e (diff) | |
download | pytorch-a6d20495c24335da05a7dda271c747b6fd55c36a.tar.gz pytorch-a6d20495c24335da05a7dda271c747b6fd55c36a.tar.bz2 pytorch-a6d20495c24335da05a7dda271c747b6fd55c36a.zip |
[gflags] sort out the gflags namespace issue.
Diffstat (limited to 'caffe2/mpi')
-rw-r--r-- | caffe2/mpi/mpi_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/caffe2/mpi/mpi_test.cc b/caffe2/mpi/mpi_test.cc index 7089269543..d0a85d8d99 100644 --- a/caffe2/mpi/mpi_test.cc +++ b/caffe2/mpi/mpi_test.cc @@ -117,6 +117,10 @@ TEST(MPITest, TestAllreduce) { DEFINE_string(caffe_test_root, "gen/", "The root of the caffe test folder."); +#ifndef GFLAGS_GFLAGS_H_ + namespace gflags = google; +#endif + GTEST_API_ int main(int argc, char **argv) { int mpi_ret; MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &mpi_ret); |