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

Function getDeviceCount

src/backend/cuda/platform.cpp:360–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360int getDeviceCount() {
361 int count = 0;
362 if (cudaGetDeviceCount(&count)) {
363 return 0;
364 } else {
365 return count;
366 }
367}
368
369void init() {
370 thread_local auto err =

Callers 8

getDeviceInfoFunction · 0.70
isHalfSupportedFunction · 0.70
devpropFunction · 0.70
platform.cppFile · 0.70
shutdownMethod · 0.70
resetMemoryManagerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected