Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Launch a kernel on the GPU with one thread for each element.
- addKernel<<<1, size>>>(dev_c, dev_a, dev_b);
- // Check for any errors launching the kernel
- cudaError_t cudaStatus = cudaGetLastError();
- if (cudaStatus != cudaSuccess) {
- fprintf(stderr, "addKernel launch failed: %s\n", cudaGetErrorString(cudaStatus));
- goto Error;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement