We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a4f3f8 commit eb9e460Copy full SHA for eb9e460
paddle/phi/backends/gpu/gpu_resources.cc
@@ -108,6 +108,20 @@ void InitGpuProperties(Place place,
108
<< "Please recompile or reinstall Paddle with compatible CUDA "
109
"version.";
110
}
111
+
112
+ auto local_cudnn_version = cudnn_dso_ver / 1000;
113
+ auto compile_cudnn_version = CUDNN_VERSION / 1000;
114
+ PADDLE_ENFORCE_EQ(
115
+ compile_cudnn_version,
116
+ local_cudnn_version,
117
+ phi::errors::InvalidArgument(
118
+ "The installed Paddle is compiled with CUDNN "
119
+ "%d, but CUDNN version in your machine is %d. "
120
+ "which will cause serious incompatible bug. "
121
+ "Please recompile or reinstall Paddle with compatible CUDNN "
122
+ "version.",
123
124
+ local_cudnn_version));
125
#endif
126
127
0 commit comments