// Vector addition (device code) #include "08_1c_matSumKernel.cuh" __global__ void matSum(int *a, int *b, int *c) { int tid = blockIdx.x; if (tid < N) c[tid] = a[tid] + b[tid]; }