rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/cuda
2019-10-21 10:18:17 +02:00

12 lines
182 B
Plaintext

#include <cstdio>
__global__ void helloFromGPU() {
std::printf("Hello World\n");
__syncthreads();
}
int main() {
dim3 block(1, 10);
helloFromGPU<<<1, block>>>();
}