Detect if we are able to init cuDNN handle before auto enable it.