Question: add OpenMP pragmas to make the loop parallel: for ( i = 0; i < n; i++ ) { x [ i ] = 3
add OpenMP pragmas to make the loop parallel:
for ( i = 0; i < n; i++ ) {
x [ i ] = 3 * i + 5;
y [ i ] = log ( x [ i ] );
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
