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

Function fromCudaVersion

src/backend/common/Version.hpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69inline Version fromCudaVersion(size_t version_int) {
70 return {static_cast<int>(version_int / 1000),
71 static_cast<int>(version_int % 1000) / 10,
72 static_cast<int>(version_int % 10)};
73}
74
75inline std::string int_version_to_string(int version) {
76 return std::to_string(version / 1000) + "." +

Callers 5

cudnnModuleMethod · 0.85
checkDeviceWithRuntimeFunction · 0.85
checkAndSetDevMaxComputeFunction · 0.85
debugRuntimeCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected