| 104 | } |
| 105 | |
| 106 | ICLSVMMemoryRegion::ICLSVMMemoryRegion(cl_mem_flags flags, size_t size, size_t alignment) |
| 107 | : ICLMemoryRegion(size), _ptr(nullptr) |
| 108 | { |
| 109 | if (size != 0) |
| 110 | { |
| 111 | _ptr = clSVMAlloc(CLScheduler::get().context().get(), flags, size, alignment); |
| 112 | if (_ptr != nullptr) |
| 113 | { |
| 114 | _mem = cl::Buffer(CLScheduler::get().context(), CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR, _size, _ptr); |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | ICLSVMMemoryRegion::~ICLSVMMemoryRegion() |
| 120 | { |
nothing calls this directly
no test coverage detected