Matlab-PCT with CUDA Programming: Synchronization

8 次查看(过去 30 天)
Since pointer operations were needed, I used "__syncthreads();" in my CUDA code and it seemed that matlab did not recognize this and I got a wrong result. It was not flaws in my code because when I put two of the synchronizing command together, the result became better. The more, the better.
So, does Matlab-PCT recognize "__syncthreads();", or is it that this command does not synchronize all the threads in matlab? And what is the efficient way of synchronizing the threads in Matlab linked CUDA?
  1 个评论
James Lebak
James Lebak 2012-12-31
MATLAB and PCT don't change the behavior of __syncthreads() in your CUDA code. Can you say more about your kernel, how it uses __syncthreads(), and how it is being called from MATLAB?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by