thread对内存读写的安全
void __threadfence_block();void __threadfence();void __threadfence_system();
参考:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#memory-fence-functions
来源:CSDN
作者:Claroja
链接:https://blog.csdn.net/claroja/article/details/103894438