https://stackoverflow.com/questions/12373940/difference-between-global-and-device-functions
__global__是kernel函数,可从cpu调用,调用时用<<< >>>语法配置并行化参数。__device__是只能从一个gpu函数调用,不能从cpu调用。
https://stackoverflow.com/questions/12373940/difference-between-global-and-device-functions
__global__是kernel函数,可从cpu调用,调用时用<<< >>>语法配置并行化参数。__device__是只能从一个gpu函数调用,不能从cpu调用。