1 #include "caffe2/core/common_cudnn.h" 3 #include "caffe2/core/init.h" 7 thread_local CuDNNHandles CuDNNWrapper::tls_cudnn_handles_;
9 CuDNNWrapper::PerGPUCuDNNStates& CuDNNWrapper::cudnn_states() {
12 static auto* p =
new CuDNNWrapper::PerGPUCuDNNStates();
18 bool PrintCuDNNInfo(
int*,
char***) {
19 VLOG(1) <<
"Caffe2 is built with CuDNN version " << CUDNN_VERSION;
23 REGISTER_CAFFE2_INIT_FUNCTION(PrintCuDNNInfo, &PrintCuDNNInfo,
Simple registry implementation in Caffe2 that uses static variables to register object creators durin...