void *array::pinned(size_t elements, af_dtype type) { void *ptr; AF_THROW(af_alloc_pinned(&ptr, elements * size_of(type))); // FIXME: Add to map return ptr; }
void *pinned(const size_t elements, const af::dtype type) { void *ptr; AF_THROW(af_alloc_pinned(&ptr, elements * size_of(type))); // FIXME: Add to map return ptr; }