Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
dd44b41cbee98b4fa0f379fcf73ee20eb55d117d
/
.
/
Tests
/
RunCMake
/
EnableLanguageSubdir
/
cuda
/
src.cu
blob: 5cb7dd09495235744f745e7db1d83a0c810307ed [
file
]
#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
();
}