Skip to content

Commit

Permalink
should be able to build
Browse files Browse the repository at this point in the history
  • Loading branch information
xmfbit committed May 23, 2017
1 parent 3b18b70 commit e519743
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions include/caffe/util/cudnn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ inline const char* cudnnGetErrorString(cudnnStatus_t status) {
return "CUDNN_STATUS_NOT_SUPPORTED";
case CUDNN_STATUS_LICENSE_ERROR:
return "CUDNN_STATUS_LICENSE_ERROR";
#if CUDNN_VERSION_MIN(6, 0, 0)
case CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING:
return "CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING";
#endif
}
return "Unknown cudnn status";
}
Expand Down Expand Up @@ -109,8 +113,14 @@ template <typename Dtype>
inline void setConvolutionDesc(cudnnConvolutionDescriptor_t* conv,
cudnnTensorDescriptor_t bottom, cudnnFilterDescriptor_t filter,
int pad_h, int pad_w, int stride_h, int stride_w) {
#if CUDNN_VERSION_MIN(6, 0, 0)
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION,
dataType<Dtype>::type));
#else
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
#endif
}

template <typename Dtype>
Expand Down
1 change: 1 addition & 0 deletions include/caffe/util/rng.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "boost/random/uniform_int.hpp"

#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"

namespace caffe {

Expand Down
2 changes: 1 addition & 1 deletion src/caffe/layers/resample_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "caffe/util/math_functions.hpp"

#include <opencv2/opencv.hpp>
#include <opencv2/gpu/gpu.hpp>
//#include <opencv2/gpu/gpu.hpp>

namespace caffe {

Expand Down

0 comments on commit e519743

Please sign in to comment.