Skip to content

Instantly share code, notes, and snippets.

@sachith-1
Created August 7, 2021 06:28
Show Gist options
  • Save sachith-1/9adeaa20ada7e291cadbd99ae689a2c7 to your computer and use it in GitHub Desktop.
Save sachith-1/9adeaa20ada7e291cadbd99ae689a2c7 to your computer and use it in GitHub Desktop.
__global__ void getSum (int *n1, int *n2, int *sumData){
*sumData = *n1 + *n2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment