代码语言:javascript复制
#include<stdio.h>
__global__ void happy()
{
printf("Programmers of all lands! Happy 1024n");
}
int main()
{
happy<<<1,1024>>>();
cudaStreamSynchronize(NULL);
return (!1024);
}