thread对内存读写的安全
void __threadfence_block();
void __threadfence();
void __threadfence_system();
参考:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#memory-fence-functions
thread对内存读写的安全
void __threadfence_block();
void __threadfence();
void __threadfence_system();
参考:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#memory-fence-functions