Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ getDevicePtr
Function
getDevicePtr
src/backend/oneapi/Array.cpp:417–420 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
415
416
template<typename T>
417
void *getDevicePtr(const Array<T> &arr) {
418
const buffer<T> *buf = arr.device();
419
return (void *)buf;
420
}
421
422
template<typename T>
423
Array<T> createNodeArray(const dim4 &dims, Node_ptr node) {
Callers
nothing calls this directly
Calls
1
device
Method · 0.45
Tested by
no test coverage detected