kernel函数大致如下,
double r_atomic;
shared double s_atomic;
if (threadIdx.x==0){
s_atomic=1.0;
}
__syncthreads();
r_atomic =0.5;
atomicMin(&s_atomic,r_atomic);
运行出错:error:no instance of overloaded function “atomicMin” matches the argument list
argument types are: (double *, double)
求大神指教!