Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
6 Views

NaNs appearing with -openmp

Hi All,
A C++ project compiled with icc 10.1.018 on fedora 7
(Linux nove.eeng.foo.ie 2.6.23.17-88.fc7 #1 SMP Thu May 15 00:02:29 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
using;

>>icc -o x foo_main.cpp complex.cpp -g -lm
gives expected results, but with OpenMP;

>>icc -openmp -o x foo_main.cpp complex.cpp -g -lm

the result has some NaNs , any ideas on what might be going wrong?

Possibly that, I have some pointers with 1 offset, like;

complex volume_V[b_counter] , *volv ; volv = volume_V-1 ; // from numerical recipes

But they work well with the serial version ,the problems could be due to this! I don't want to
rewrite with 0 offset, just to see if the problem lies there.

Have you seen this some where?
Thanks for reading!
0 Kudos
2 Replies
Highlighted
Employee
6 Views


Could you pleseshare foo_main.cpp and complex.cpp with us? You can attach the files to this thread.
0 Kudos
Highlighted
Beginner
6 Views


Could you plese share foo_main.cpp and complex.cpp with us? You can attach the files to this thread.
Hi Om, Thanks for a quick response, I will email the code to your intel mail.
0 Kudos