Skip to content

Instantly share code, notes, and snippets.

@sachith-1
Created August 7, 2021 05:53
Show Gist options
  • Save sachith-1/01460fe5f1224757162f8ba85052164a to your computer and use it in GitHub Desktop.
Save sachith-1/01460fe5f1224757162f8ba85052164a to your computer and use it in GitHub Desktop.
__global__ void helloCuda(int *num1, int *num2, int *sum){
printf("Hello World from CUDA GPU!\n");
*sum = *num1+*num2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment