MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / wait

Method wait

src/runtime/ocl/ocl_queue.cpp:419–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419result ocl_queue::wait() {
420 cl_int err = _queue.finish();
421 if(err != CL_SUCCESS) {
422 return make_error(__acpp_here(),
423 error_info{"ocl_queue: Couldn't finish queue",
424 error_code{"CL", err}});
425 }
426 return make_success();
427}
428
429device_id ocl_queue::get_device() const {
430 return _hw_manager->get_device_id(_device_index);

Callers 1

Calls 2

make_errorFunction · 0.85
make_successFunction · 0.85

Tested by

no test coverage detected