add __device__ to coef