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

Function getDevicePtr

src/backend/cpu/Array.hpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116template<typename T>
117void *getDevicePtr(const Array<T> &arr) {
118 T *ptr = arr.device();
119 memLock(ptr);
120
121 return (void *)ptr;
122}
123
124template<typename T>
125void *getRawPtr(const Array<T> &arr) {

Callers 2

gauss_filterFunction · 0.50
af_get_device_ptrFunction · 0.50

Calls 2

memLockFunction · 0.70
deviceMethod · 0.45

Tested by

no test coverage detected