-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asynchronous offload #7
Labels
Comments
Async Map #pragma omp map(to: a[:N] ) nowait In OpenMP 5.0 a task can be detached, even if not completed. Needs to use API to signal the completion of the task. omp_event_handle_t *event;
#pragma omp task A
{
}
#pragma omp task B detach(event)
{
do_stuff()
hipStreamAddCallback(stream,callback,&hip_event,0)
}
void callback(hipStream_t stream, hipError_t status, void * cb_dat){
omp_fullfill_event( *(omp_event_handle_t *) cb_data );
}
#pragma omp taskwait; |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: