Skip to content

For CuDNN higher version support#33

Open
mdamircoder wants to merge 1 commit intoAojunZhou:masterfrom
mdamircoder:patch-1
Open

For CuDNN higher version support#33
mdamircoder wants to merge 1 commit intoAojunZhou:masterfrom
mdamircoder:patch-1

Conversation

@mdamircoder
Copy link
Copy Markdown

Check for setConvolutionDesc() in cudnn.hpp
It should be

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) //Added from here (amir)
// For CuDNN higher version
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION,
dataType::type));
#else
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
#endif //Added upto this (amir)
}

Check for setConvolutionDesc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant