[FLASH-USERS] ifort compilation problem

Samuel Friedman friedman at astro.wisc.edu
Wed Aug 11 12:21:24 EDT 2010


Hi Latif,

These memory issues come from the fact that you're trying to put too many 
variables into memory.  Somehow the compiler knows/cares about this.  My 
notes say for me to use smaller blocks instead of larger blocks.  What are 
the size blocks you are using for UG?  My notes say that 128^3 blocks 
worked better than 256^3 blocks.

Sam

On Wed, 11 Aug 2010, Latif wrote:

> Hi Sam,
> Thanks for response, I have already tried these options but does not help. I 
> have also tried -mcmodel=large and -fpic, -i_dynamic.
> Cheers
> Latif
> Samuel Friedman wrote:
>> An older message but something I found did work:
>> 
>> http://flash.uchicago.edu/pipermail/flash-users/2008-September/002662.html 
>> 
>> -mcmodel=medium is what you want.  I spent some time going through the 
>> Intel compiler documentation and I recall reading that this is the flag you 
>> want to use (vs. -fpic and -i_dynamic which I think are older flags that 
>> are to be depreciated).
>> 
>> Lastly,
>> 
>> http://www.google.com/search?hl=en&q=+site:flash.uchicago.edu+flash+users+relocation 
>> 
>> Sam
>> 
>> On Wed, 11 Aug 2010, Latif wrote:
>> 
>>> Hi folks,
>>> I am trying to run 1024^3 simulations using UG. Compilation goes fine with 
>>> xl compiler but when i try to compile the code with intel comiler (ifort 
>>> 10.1.017) it produces following error. I think, I need to change 
>>> compilation options (may be array sizes become bigger). Any ideas?
>>> o ut_polint.o ut_quadraticInterpol.o 
>>> -L/net/abdussalam/data/users/latife/Libraries/lib64/hdf5-1.8.1/hdf5/lib 
>>> -lhdf5 -lz    -L 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib 
>>> -lmpich
>>> Driver_abortFlashC.o: In function `Driver_abortFlashC':
>>> Driver_abortFlashC.c:(.text+0x15): relocation truncated to fit: 
>>> R_X86_64_PC32 against symbol `Driver_abortFlashC_myPE' defined in COMMON 
>>> section in Driver_abortFlashC.o
>>> Driver_abortFlashC.o: In function `driver_abortflashc_set_mype_':
>>> Driver_abortFlashC.c:(.text+0xbe): relocation truncated to fit: 
>>> R_X86_64_PC32 against symbol `Driver_abortFlashC_myPE' defined in COMMON 
>>> section in Driver_abortFlashC.o
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(abort.o): 
>>> In function `MPI_Abort':
>>> abort.c:(.text+0x28): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_Process' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x41): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0xe1): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x188): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_Process' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x225): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x245): relocation truncated to fit: R_X86_64_32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x255): relocation truncated to fit: R_X86_64_PC32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x275): relocation truncated to fit: R_X86_64_32 against 
>>> symbol `MPIR_ThreadInfo' defined in .bss section in 
>>> /net/abdussalam/data/users/latife/Libraries/lib64/mpich2-1.0.8p1/MPICH/lib/libmpich.a(initthread.o) 
>>> abort.c:(.text+0x29a): additional relocation overflows omitted from the 
>>> output
>>> make: *** [flash3] Error 1
>>> cheers
>>> Latif
>>> 
>



More information about the flash-users mailing list