C

cudaStreamAddCallback with OpenMP Detach

Simple code to test OpenMP Detach functionality using cudaMemCpy2DAsync for asynchronous copies and cudaStreamAddCallback to perform the callback which fulfills the OpenMP detached event.