File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ ExternalProject_Add(
42
42
# Disable -Werror, otherwise the compile will fail in MacOS.
43
43
# It seems that we cannot configure that by make command.
44
44
# Just dry run make command and remove `-Werror`, then use a shell to run make commands
45
- BUILD_COMMAND ${BUILD_CMD}
45
+ BUILD_COMMAND ${BUILD_CMD} HAS_SYSTEM_PROTOBUF= false -s -j8 static grpc_cpp_plugin
46
46
INSTALL_COMMAND make prefix =${GRPC_INSTALL_DIR} install
47
47
)
48
48
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class CudnnConvOpKernel : public framework::OpKernel<T> {
63
63
cudnnConvolutionDescriptor_t cudnn_conv_desc =
64
64
conv_desc.descriptor <T>(paddings, strides, dilations);
65
65
66
- #if CUDNN_VERSION_MIN(7, 0, 0 )
66
+ #if CUDNN_VERSION_MIN(7, 0, 1 )
67
67
// cudnn 7 can support groups, no need to do it mannually
68
68
// FIXME(typhoonzero): find a better way to disable groups
69
69
// rather than setting it to 1.
@@ -180,7 +180,7 @@ class CudnnConvGradOpKernel : public framework::OpKernel<T> {
180
180
cudnnConvolutionDescriptor_t cudnn_conv_desc =
181
181
conv_desc.descriptor <T>(paddings, strides, dilations);
182
182
183
- #if CUDNN_VERSION_MIN(7, 0, 0 )
183
+ #if CUDNN_VERSION_MIN(7, 0, 1 )
184
184
// cudnn 7 can support groups, no need to do it mannually
185
185
// FIXME(typhoonzero): find a better way to disable groups
186
186
// rather than setting it to 1.
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ CUDNN_DNN_ROUTINE_EACH_AFTER_R4(DEFINE_WRAP);
37
37
CUDNN_DNN_ROUTINE_EACH_R5 (DEFINE_WRAP);
38
38
#endif
39
39
40
+ #ifdef CUDNN_DNN_ROUTINE_EACH_R7
41
+ CUDNN_DNN_ROUTINE_EACH_R7 (DEFINE_WRAP);
42
+ #endif
43
+
40
44
} // namespace dynload
41
45
} // namespace platform
42
46
} // namespace paddle
Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ CUDNN_DNN_ROUTINE_EACH_AFTER_R4(DECLARE_DYNAMIC_LOAD_CUDNN_WRAP)
135
135
CUDNN_DNN_ROUTINE_EACH_R5 (DECLARE_DYNAMIC_LOAD_CUDNN_WRAP)
136
136
#endif
137
137
138
+ #if CUDNN_VERSION >= 7001
139
+ #define CUDNN_DNN_ROUTINE_EACH_R7 (__macro ) \
140
+ __macro (cudnnSetConvolutionGroupCount);
141
+ CUDNN_DNN_ROUTINE_EACH_R7 (DECLARE_DYNAMIC_LOAD_CUDNN_WRAP)
142
+ #endif
143
+
138
144
} // namespace dynload
139
145
} // namespace platform
140
146
} // namespace paddle
You can’t perform that action at this time.
0 commit comments