Last active
November 24, 2021 21:05
-
-
Save malfet/cae27d3eb5caf3627539471b8a766eec to your computer and use it in GitHub Desktop.
CUDA Hello world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
__global__ void kernel() { | |
printf("Hello World of CUDA %d\n", threadIdx.x); | |
} | |
int main() { | |
kernel<<<1,1>>>(); | |
return cudaDeviceSynchronize(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment