Created
September 15, 2020 15:43
-
-
Save malfet/0a40af6b59772501fab0641ceff8c3e2 to your computer and use it in GitHub Desktop.
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
// nvcc -o hello hello.cu; ./hello | |
#include <stdio.h> | |
__global__ void kernel() { | |
printf("Hello World of CUDA\n"); | |
} | |
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