CUDA 笔记

1. __device__ 函数的声明和定义   

函数头文件device.h

extern __device__ void helloworld();

其实就是声明一下函数

#include <stdio.h>

__device__  void helloworld()
{
	printf("Hello world!
");
}
原文地址:https://www.cnblogs.com/luoyinjie/p/8117190.html