Closed forcegk closed 9 months ago
The following loop is not in OpenMP canonical form because the iterator is initialized outside the loop: [...]
This can be easily fixed by removing the j increment and calculating it as a function of variable i.
void example(int **A, int n, int m) { for (int i = 0; i < n; i++) { A[i] = m; } }
Which j increment? I think there might be a copy-paste type of error :)
j
The following loop is not in OpenMP canonical form because the iterator is initialized outside the loop: [...]
This can be easily fixed by removing the j increment and calculating it as a function of variable i.
Which
j
increment? I think there might be a copy-paste type of error :)