Skip to content

Instantly share code, notes, and snippets.

@malfet
Created September 15, 2020 15:43
Show Gist options
  • Save malfet/0a40af6b59772501fab0641ceff8c3e2 to your computer and use it in GitHub Desktop.
Save malfet/0a40af6b59772501fab0641ceff8c3e2 to your computer and use it in GitHub Desktop.
// 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