Skip to content

Commit

Permalink
check for cpu_only build when using caffe_gpu_dot in layer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lopho committed Aug 20, 2016
1 parent 9a8236e commit ac57884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/caffe/layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ void Layer<Dtype>::Unlock() {

template <typename Dtype>
void Layer<Dtype>::layer_gpu_dot(const int n, const Dtype* x, const Dtype* y, Dtype* out) {
#ifndef CPU_ONLY
caffe_gpu_dot(n, x, y, out);
#endif
}


Expand Down

0 comments on commit ac57884

Please sign in to comment.