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

Function getDevicePtr

src/backend/cuda/Array.hpp:129–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128template<typename T>
129void *getDevicePtr(const Array<T> &arr) {
130 T *ptr = arr.device();
131 memLock(ptr);
132 return (void *)ptr;
133}
134
135template<typename T>
136void *getRawPtr(const Array<T> &arr) {

Callers

nothing calls this directly

Calls 2

memLockFunction · 0.70
deviceMethod · 0.45

Tested by

no test coverage detected