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

Function allocV2

src/api/cpp/device.cpp:114–118  ·  view source on GitHub ↗

Alloc device memory

Source from the content-addressed store, hash-verified

112
113// Alloc device memory
114void *allocV2(const size_t bytes) {
115 void *ptr;
116 AF_THROW(af_alloc_device_v2(&ptr, bytes));
117 return ptr;
118}
119
120// Alloc pinned memory
121void *pinned(const size_t elements, const af::dtype type) {

Callers 3

TESTFunction · 0.85
memAllocPtrScopeTestFunction · 0.85
TESTFunction · 0.85

Calls 1

af_alloc_device_v2Function · 0.50

Tested by

no test coverage detected