示例#1
0
 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;
 }
示例#2
0
 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;
 }