Advertisement
poorjadefinder

Untitled

Dec 7th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.  // Launch a kernel on the GPU with one thread for each element.
  2.     addKernel<<<1, size>>>(dev_c, dev_a, dev_b);
  3.  
  4.     // Check for any errors launching the kernel
  5.     cudaError_t cudaStatus = cudaGetLastError();
  6.     if (cudaStatus != cudaSuccess) {
  7.         fprintf(stderr, "addKernel launch failed: %s\n", cudaGetErrorString(cudaStatus));
  8.         goto Error;
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement