Waits until the device has completed all operations in the stream specified by hStream. If the context was created with the CU_CTX_BLOCKING_SYNC flag, the CPU thread will block until the stream is finished with all of its tasks.
hStream