Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
360
int getDeviceCount() {
361
int count = 0;
362
if (cudaGetDeviceCount(&count)) {
363
return 0;
364
} else {
365
return count;
366
}
367
}
368
369
void init() {
370
thread_local auto err =
Callers
8
getDeviceInfo
Function · 0.70
isHalfSupported
Function · 0.70
devprop
Function · 0.70
platform.cpp
File · 0.70
shutdown
Method · 0.70
checkGraphicsInteropCapability
Method · 0.70
resetMemoryManager
Method · 0.70
resetMemoryManagerPinned
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected