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

Function cudaRuntimeVersionComponents

src/backend/cuda/cudnnModule.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59Version cudaRuntimeVersionComponents(size_t version) {
60 int major = static_cast<int>(version / 1000);
61 int minor = static_cast<int>((version - (major * 1000)) / 10);
62 int patch =
63 static_cast<int>((version - (major * 1000) - (minor * 10)) / 10);
64 return {major, minor, patch};
65}
66
67Version getCudnnVersion(const LibHandle& handle) {
68 std::function<size_t()> fptr(reinterpret_cast<size_t (*)()>(

Callers 1

cudnnModuleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected