MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetCudnnVersion

Function GetCudnnVersion

tensorflow/core/kernels/gpu_utils.cc:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106namespace {
107
108tensorflow::CudnnVersion GetCudnnVersion(se::StreamExecutor* stream_executor) {
109 tensorflow::CudnnVersion cudnn_version;
110 if (auto* dnn = stream_executor->AsDnn()) {
111 se::port::StatusOr<se::dnn::VersionInfo> version_or = dnn->GetVersion();
112 if (version_or.ok()) {
113 const auto& version = version_or.ValueOrDie();
114 cudnn_version.set_major(version.major_version());
115 cudnn_version.set_minor(version.minor_version());
116 cudnn_version.set_patch(version.patch());
117 }
118 }
119 return cudnn_version;
120}
121
122tensorflow::ComputeCapability GetComputeCapability(
123 se::StreamExecutor* stream_executor) {

Calls 6

AsDnnMethod · 0.80
major_versionMethod · 0.80
minor_versionMethod · 0.80
patchMethod · 0.80
GetVersionMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected