| 89 | } |
| 90 | |
| 91 | void alignedSYCLFree(sycl::context* context, void* ptr) |
| 92 | { |
| 93 | assert(context); |
| 94 | if (ptr) { |
| 95 | sycl::usm::alloc type = sycl::get_pointer_type(ptr, *context); |
| 96 | if (type == sycl::usm::alloc::host || type == sycl::usm::alloc::device || type == sycl::usm::alloc::shared) |
| 97 | sycl::free(ptr,*context); |
| 98 | else { |
| 99 | alignedFree(ptr); |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | #endif |
| 105 |