Replacing deprecated warp shuffle function

Another question, __shfl_up(Dvar,1) does not work in cuda 10. I replace it with __shfl_up_sync(Dvar,1,32).Is it equal, it does not give me the right results.

I have no idea what this function is doing, but think that this may answer your question: https://stackoverflow.com/a/50647054/3182664