In the following code, there is a data race.
I would like to know which compiler option must be turn on in order to see that Intel C++ compiler detects this data race. And what will be the expected message from the compiler.
# pragma omp parallel for {
for ( i=1; i< N; i++){
a(i) = a(i) + a(i – 1)
}
Thanks in advance
Ami