We have a user, who is running CAM, we are compiling with openmpi/1.3.2 built with pgi/8.0.
This user increased his problem size such that when he linked we would get errors about: “relocation truncated to fit: R_X86_64_PC32”
Normally we solved this problem by adding -mcmodel=medium at compile and link.
In this case though, the code would compile with the ‘debug’ options on, those options were:
-g -Ktrap=fp -Mrecursive -Mbound
In our case we found that adding -Mrecursive to the optimized flags, allowed the code to compile.
What we want to know is, what did Mrecursive do to effect this (I was surprised it worked), as it was not needed before the problem size was increased.
Any insight into what is going on would be helpful.