__global__ void sub(const int a[], const int b[], int c[]) { int i = blockDim.x * blockIdx.x + threadIdx.x; c[i] = a[i] - b[i]; }