#include <iostream>
#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!
#include <iostream>
#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!