CUDA,HELLOWORLD!

#include 
#include "cuda_runtime.h"

using namespace std;

__global__ void kernel(void)
{

}

int main()
{
kernel << <1, 1 >> >();
cout << "HelloWorld\n" << endl;
system("pause");
return 0;
}


配置环境后通过CUDA写出了第一个程序,HelloWorld!

CUDA,HELLOWORLD!_第1张图片

你可能感兴趣的:(CUDA,HELLOWORLD!)