Will the cublas kernel functions automatically be synchronized with the host?

后端 未结 1 678
栀梦
栀梦 2020-12-21 00:16

Just a general question about cublas. For a single thread, if there is not memory transfer from GPU to CPU (e.g. cublasGetVector), will the cublas kernel functions (eg cubla

相关标签:
1条回答
  • 2020-12-21 00:22

    No, the CUBLAS API is, with the exception of a few Level 1 routines which return a scalar value, asynchronous.

    Level 3 routines like cublasDgemm don't block the host, you need to call a blocking API routine like a synchronous memory transfer or an explicit host-GPU synchronisation call to ensure that the CUBLAS call has completed.

    0 讨论(0)
提交回复
热议问题