Implement a GPU program to calculate the Mean Squared Error (MSE) between
predicted values and target values. Given two arrays of equal length,
predictions and targets, compute: \[ \text{MSE} =
\frac{1}{N} \sum_{i=1}^{N} (predictions_i - targets_i)^2 \] where N is the
number of elements in each array.
solve function signature must remain unchanged.mse variable.
Input: predictions = [1.0, 2.0, 3.0, 4.0]
targets = [1.5, 2.5, 3.5, 4.5]
Output: mse = 0.25
Input: predictions = [10.0, 20.0, 30.0]
targets = [12.0, 18.0, 33.0]
Output: mse = 5.67
N ≤ 100,000,000predictions[i], targets[i] ≤
1000.0
N = 50,000,000