Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ memAllocUser
Function
memAllocUser
src/backend/oneapi/memory.cpp:90–94 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
88
}
89
90
void *memAllocUser(const size_t &bytes) {
91
dim4 dims(bytes);
92
void *ptr = memoryManager().alloc(true, 1, dims.get(), 1);
93
return ptr;
94
}
95
96
template<typename T>
97
void memFree(sycl::buffer<T> *ptr) {
Callers
nothing calls this directly
Calls
2
alloc
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected