| 249 | } |
| 250 | |
| 251 | af_err af_alloc_device(void **ptr, const dim_t bytes) { |
| 252 | try { |
| 253 | AF_CHECK(af_init()); |
| 254 | *ptr = memAllocUser(bytes); |
| 255 | } |
| 256 | CATCHALL; |
| 257 | return AF_SUCCESS; |
| 258 | } |
| 259 | |
| 260 | af_err af_alloc_device_v2(void **ptr, const dim_t bytes) { |
| 261 | try { |
no test coverage detected