CUDA_CHECK(cudaMalloc(&d_a, bytes));
vecAdd<<<blocksPerGrid, threadsPerBlock>>>(d_a, d_b, d_c, n);
CUDA_CHECK(cudaGetLastError());          // catches launch-configuration errors
CUDA_CHECK(cudaDeviceSynchronize());     // catches errors during execution
