rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/cuda

12 lines
182 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
#include <cstdio>
__global__ void helloFromGPU() {
std::printf("Hello World\n");
__syncthreads();
}
int main() {
dim3 block(1, 10);
helloFromGPU<<<1, block>>>();
}