Using icc v 15.0.1, I get the errors listed below when compiling the following nested for loops. gcc does not complain. What flags
should be used to "ignore" the errors, or recommend changes to the sources?
:
:
#pragma omp parallel for
for ( size_t K = 0; K < Nseg; ++K ) {
#pragma omp parallel for
for ( size_t X = 0; X < numDet; ++X ) {
#pragma omp parallel for
for ( size_t n = 0; n < intN[k][X]; ++n ) {
:
:
Compile time errors are as follows:
foo.c(100): error: "K" can only appear on one data scope attribute clause inan OpenMP pragma (except firstprivate and lastprivate)
#pragma omp parallel for
^
foo.c(100): error: "X" can only appear on one data scope attribute clause in an OpenMP pragma (except firstprivate and lastprivate)
#pragma omp parallel for
^compilation aborted for foo.c (code 2)
thanks!