From 9aa085863762d8b582159bafedc2559608e447c0 Mon Sep 17 00:00:00 2001 From: Kai Li Date: Tue, 10 Jun 2014 09:26:31 +0800 Subject: [PATCH] Rename curand_availability_logged according to the Google style guide --- src/caffe/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/caffe/common.cpp b/src/caffe/common.cpp index f560069..88fd3a9 100644 --- a/src/caffe/common.cpp +++ b/src/caffe/common.cpp @@ -50,7 +50,7 @@ void Caffe::set_random_seed(const unsigned int seed) { // Curand seed // Yangqing's note: simply setting the generator seed does not seem to // work on the tesla K20s, so I wrote the ugly reset thing below. - static bool curand_availability_logged = false; + static bool g_curand_availability_logged = false; if (Get().curand_generator_) { CURAND_CHECK(curandDestroyGenerator(curand_generator())); CURAND_CHECK(curandCreateGenerator(&Get().curand_generator_, @@ -58,10 +58,10 @@ void Caffe::set_random_seed(const unsigned int seed) { CURAND_CHECK(curandSetPseudoRandomGeneratorSeed(curand_generator(), seed)); } else { - if (!curand_availability_logged) { + if (!g_curand_availability_logged) { LOG(ERROR) << "Curand not available. Skipping setting the curand seed."; - curand_availability_logged = true; + g_curand_availability_logged = true; } } // RNG seed -- 2.7.4