how to convert tnto openMP

434 viewsHow to..code computer test test. sd
0

Convert the following code into OpenMP.
int A[N], B[N]; // Assume already has data
int i, d;
int sum = 0;
for (i=O; i < N; i++) [
d = A[i] - B[i];
if (d>0)
sum = sum + d;

Asked question
Write your answer.