blob: 5cb7dd09495235744f745e7db1d83a0c810307ed [file] [edit]
#include <cstdio>
#include "src.h"
__global__ void hello_world_kernel()
{
printf("Hello from GPU thread %d\n", threadIdx.x);
}
void hello_world()
{
hello_world_kernel<<<1, 1>>>();
cudaDeviceSynchronize();
}