Skip to content

Instantly share code, notes, and snippets.

@robintux
Last active September 8, 2024 03:04
Show Gist options
  • Save robintux/8a5b7b6afed9625a4f9d485bd10d9c48 to your computer and use it in GitHub Desktop.
Save robintux/8a5b7b6afed9625a4f9d485bd10d9c48 to your computer and use it in GitHub Desktop.
#include <stdio.h>
__global__ void helloCUDA()
{
printf("Hello, CUDA!\n Abraham Zamudio");
}
int main()
{
helloCUDA<<<1, 1>>>();
cudaDeviceSynchronize();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment