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

Function af_alloc_host

src/api/unified/device.cpp:103–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101af_err af_free_pinned(void *ptr) { CALL(af_free_pinned, ptr); }
102
103af_err af_alloc_host(void **ptr, const dim_t bytes) {
104 *ptr = malloc(bytes); // NOLINT(hicpp-no-malloc)
105 return (*ptr == NULL) ? AF_ERR_NO_MEM : AF_SUCCESS;
106}
107
108af_err af_free_host(void *ptr) {
109 free(ptr); // NOLINT(hicpp-no-malloc)

Callers 1

af_get_last_errorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected