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

Function af_alloc_device

src/api/c/memory.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251af_err af_alloc_device(void **ptr, const dim_t bytes) {
252 try {
253 AF_CHECK(af_init());
254 *ptr = memAllocUser(bytes);
255 }
256 CATCHALL;
257 return AF_SUCCESS;
258}
259
260af_err af_alloc_device_v2(void **ptr, const dim_t bytes) {
261 try {

Callers 3

TESTFunction · 0.50
TESTFunction · 0.50
allocFunction · 0.50

Calls 2

af_initFunction · 0.70
memAllocUserFunction · 0.50

Tested by

no test coverage detected