Consider the following code: #pragma omp parallel for for(int i = 1: i


Consider the following code:<br>#pragma omp parallel for<br>for(int i = 1: i <= 18; i++)<br>a[i] = i<br>Rewrite the code so the values of i assigned to each thread are the following:<br>P1: 1, 2, 3, 10, 11. 12<br>P2: 4, 5, 6, 13, 14, 15<br>P3: 7. 8, 9, 16. 17. 18<br>Use the editor to format your answer<br>

Extracted text: Consider the following code: #pragma omp parallel for for(int i = 1: i <= 18;="" i++)="" a[i]="i" rewrite="" the="" code="" so="" the="" values="" of="" i="" assigned="" to="" each="" thread="" are="" the="" following:="" p1:="" 1,="" 2,="" 3,="" 10,="" 11.="" 12="" p2:="" 4,="" 5,="" 6,="" 13,="" 14,="" 15="" p3:="" 7.="" 8,="" 9,="" 16.="" 17.="" 18="" use="" the="" editor="" to="" format="" your="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here