This problem is CUDA C++. Complete the two functions in the starter file:
__global__ void add_kernel(const float* a, const float* b, float* c, int n): thread sets c[i] = a[i] + b[i] when ; one element per thread.std::vector<float> vector_add(const std::vector<float>& a, const std::vector<float>& b): the host wrapper. a and b have the same length . Allocate device buffers for a, b and c, copy a and b host-to-device, launch add_kernel with enough threads to cover , copy c back, free the device memory, and return c as a std::vector<float> of length . Return an empty vector when .The grader links its own main(), which calls vector_add and prints the returned vector, so do not define main or print anything. The addition must happen in the kernel, not on the host.