PyCuda equivalent of cudaThreadSynchronize(); pycuda function

Hello,

I went through the pycuda documentation and it seems the equivalent function is

pycuda.driver.Context.synchronize().

Is this accurate?

I need this to block kernel calls in python, to measure kernel execution time.

Thanks
Siddharth

yes. you can also insert drv.Events into the execution stream to asynchronously time kernels.