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

Function allocHost

src/api/cpp/device.cpp:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void *allocHost(const size_t elements, const af::dtype type) {
145 void *ptr;
146 AF_THROW(af_alloc_host(&ptr, elements * size_of(type)));
147 return ptr;
148}
149
150void freeHost(const void *ptr) { AF_THROW(af_free_host((void *)ptr)); }
151

Callers

nothing calls this directly

Calls 2

size_ofFunction · 0.85
af_alloc_hostFunction · 0.50

Tested by

no test coverage detected