Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
128
template<typename T>
129
void *getDevicePtr(const Array<T> &arr) {
130
T *ptr = arr.device();
131
memLock(ptr);
132
return (void *)ptr;
133
}
134
135
template<typename T>
136
void *getRawPtr(const Array<T> &arr) {
Callers
nothing calls this directly
Calls
2
memLock
Function · 0.70
device
Method · 0.45
Tested by
no test coverage detected