| 142 | } |
| 143 | |
| 144 | void *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 | |
| 150 | void freeHost(const void *ptr) { AF_THROW(af_free_host((void *)ptr)); } |
| 151 |
nothing calls this directly
no test coverage detected