diff options
author | Cyprien Noel <cyprien.noel@gmail.com> | 2017-01-06 14:55:12 -0800 |
---|---|---|
committer | Cyprien Noel <cyprien.noel@gmail.com> | 2017-01-06 14:56:39 -0800 |
commit | 3ba20549b7f49a76cd023d19f781a6891b2c2122 (patch) | |
tree | 3786ec8f8c120bdb29166a31d396274c86820fc1 /src/caffe/layer.cpp | |
parent | 2317fa19d3f5a65cb22adcbd3792ea248996744e (diff) | |
download | caffeonacl-3ba20549b7f49a76cd023d19f781a6891b2c2122.tar.gz caffeonacl-3ba20549b7f49a76cd023d19f781a6891b2c2122.tar.bz2 caffeonacl-3ba20549b7f49a76cd023d19f781a6891b2c2122.zip |
Switched multi-GPU to NCCL
Diffstat (limited to 'src/caffe/layer.cpp')
-rw-r--r-- | src/caffe/layer.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/caffe/layer.cpp b/src/caffe/layer.cpp index 3b912898..684ae88b 100644 --- a/src/caffe/layer.cpp +++ b/src/caffe/layer.cpp @@ -1,27 +1,7 @@ -#include <boost/thread.hpp> #include "caffe/layer.hpp" namespace caffe { -template <typename Dtype> -void Layer<Dtype>::InitMutex() { - forward_mutex_.reset(new boost::mutex()); -} - -template <typename Dtype> -void Layer<Dtype>::Lock() { - if (IsShared()) { - forward_mutex_->lock(); - } -} - -template <typename Dtype> -void Layer<Dtype>::Unlock() { - if (IsShared()) { - forward_mutex_->unlock(); - } -} - INSTANTIATE_CLASS(Layer); } // namespace caffe |