Hi,
I have got a code which works well in debug ver but gives segmentation fault in the optimized ver. I optimized with:
-ipo -O3 -r8 -c -fPIC -save
After quite a lot of debugging, it seems that it was most likely due to a bug in the compiler. I can't do more debugging since the error part of the code was not written by me. Also, newer ver of Intel compiler works fine with the opt ver. However, the cluster I'm using is stuck with the old ver
I realised that if I use O1 instead of O3, and no ipo for 2 of the problematic source codes (total about 10 - 12), it works well. At least it's partially optimized.
So my qn is if it is ok to mix O1/O3 for different source files and built them together. The main difference is O1 instead of O3, and no ipo. Will it cause any problem? Also in that case, it is still useful to use ipo for the other files?
Can I also use PGO optimization to further optimize the code?
Thanks
I