MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / cudnnVersionComponents

Function cudnnVersionComponents

src/backend/cuda/cudnnModule.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Version cudnnVersionComponents(size_t version) {
53 int major = static_cast<int>(version / 1000);
54 int minor = static_cast<int>((version - (major * 1000)) / 100);
55 int patch = static_cast<int>(version - (major * 1000) - (minor * 100));
56 return {major, minor, patch};
57}
58
59Version cudaRuntimeVersionComponents(size_t version) {
60 int major = static_cast<int>(version / 1000);

Callers 1

getCudnnVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected