12 lines
182 B
Plaintext
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>>>();
|
||
|
}
|