学习的时候照着书上写,发现__global__这个关键字死活识别不出来 编译器是vs2019 解决方案 加一行 #include "device_launch_parameters.h" 就能成功编译运行了