MCPcopy 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
416template<typename T>
417void *getDevicePtr(const Array<T> &arr) {
418 const buffer<T> *buf = arr.device();
419 return (void *)buf;
420}
421
422template<typename T>
423Array<T> createNodeArray(const dim4 &dims, Node_ptr node) {

Callers

nothing calls this directly

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected