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

Method wait

src/runtime/hip/hip_queue.cpp:403–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403result hip_queue::wait() {
404
405 auto err = hipStreamSynchronize(_stream);
406
407 if(err != hipSuccess) {
408 return make_error(__acpp_here(),
409 error_info{"hip_queue: Couldn't synchronize with stream",
410 error_code{"HIP", err}});
411 }
412
413 return make_success();
414}
415
416result hip_queue::query_status(inorder_queue_status &status) {
417 auto err = hipStreamQuery(_stream);

Callers 1

Calls 2

make_errorFunction · 0.85
make_successFunction · 0.85

Tested by

no test coverage detected