| 180 | } |
| 181 | |
| 182 | void *Allocator::nativeAlloc(const size_t bytes) { |
| 183 | auto *ptr = new sycl::buffer<std::byte>(sycl::range(bytes)); |
| 184 | AF_TRACE("nativeAlloc: {} {}", bytesToString(bytes), |
| 185 | static_cast<void *>(ptr)); |
| 186 | return ptr; |
| 187 | } |
| 188 | |
| 189 | void Allocator::nativeFree(void *ptr) { |
| 190 | auto *buf = static_cast<sycl::buffer<std::byte> *>(ptr); |
nothing calls this directly
no test coverage detected