CUDA kernels not launching before CudaDeviceSynchronize

前端 未结 1 459
孤街浪徒
孤街浪徒 2020-12-17 06:21

\"cuda

I am having some trouble with concurrent CUDA. Take a look at the attached image. Th

1条回答
  •  再見小時候
    2020-12-17 07:04

    This is the expected behavior on Windows with the WDDM driver model, where the driver tries to mitigate the kernel launch overhead by trying to batch kernel launches. Try inserting cudaStreamQuery(0) straight after the kernel invocation to trigger early launching of the kernel before the batch is full.

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