The 'Hello World' of GPU programming. Add two arrays element-wise on the GPU, then measure memory bandwidth to understand the roofline model.
// TUTORIAL
GPU executioni:C[i] = A[i] + B[i];int i = blockIdx.x * blockDim.x + threadIdx.x;// expected output
Result: CORRECT
// YOUR PROGRESS
Log in to save progress
// DETAILS
// MORE IN PARALLELISM
// LEARN THE THEORY
Parallelism concepts