| 112 | } |
| 113 | |
| 114 | bool OneapiDeviceQueue::synchronize() |
| 115 | { |
| 116 | if (oneapi_device_->have_error()) { |
| 117 | return false; |
| 118 | } |
| 119 | |
| 120 | bool is_finished_ok = oneapi_device_->queue_synchronize(oneapi_device_->sycl_queue()); |
| 121 | if (is_finished_ok == false) { |
| 122 | oneapi_device_->set_error("oneAPI unknown kernel execution error: got runtime exception \"" + |
| 123 | oneapi_device_->oneapi_error_message() + "\""); |
| 124 | } |
| 125 | |
| 126 | debug_synchronize(); |
| 127 | |
| 128 | return !(oneapi_device_->have_error()); |
| 129 | } |
| 130 | |
| 131 | void OneapiDeviceQueue::zero_to_device(device_memory &mem) |
| 132 | { |
no test coverage detected