Driver API for cudaThreadSynchronize? API usage.


I wonder if there is thread sync api in Driver API.
I would like to substitute some Driver API for cudaThreadSynchronize()
which appears always using runtime API
inside of CUDA_SAFE_CALL. I’m now finding way how to use Driver API well.

I don’think cuCtxSynchronize, or cuStreamSynchronize is totally different thing(about stream data,
not thread). Is this right?

If I grow the question, is there always a driver API for given any of Runtime API?

Thank you in advance.


cuCtxSynchronize is what you want.

The driver API encapsulates all of the runtime API’s features, but the runtime API does not encapsulate all of the driver API’s features (most importantly the thread migration bits, but also scheduling flags for cuCtxCreate).