[Users] compiling with MPI on x86_64

Yonatan Oren yono at phys.huji.ac.il
Tue Nov 23 19:28:09 CST 2004


Hi Tom,

-pc64 just sets the FPU precision in ifort. I looked around and found 
this snippet:
===============================================
  ifc/ifort 8.1.023 creates 64-bit executable, but ifc 8.1.018 builds
32-bit executables only. And yes, all compilers modules itself (as
the libraries also, if I remember correctly) are 32-bit. We has
8.1.023 installed on SuSE 9.0 for Opteron.
=============================================
which says that ifc 8.1.023 compiles 64 bit and i have 8.1.018, so i
should upgrade, and that may solve it. for some reason the version
i received from the intel site was 8.1.018.


cheers,
Yonatan







Tom Goodale wrote:

>
> Hi,
>
> it looks like you either need a 64 bit fortran compiler, or you need 
> to compile all the C stuff 32 bit, and get a 32 bit compiled version 
> of your MPI libraries.
>
> I believe that as you are using gcc, you can just make your compiler
>
> gcc -m32
>
> (although I've not tested this).  Alternatively you might want to use 
> the intel C compiler.
>
> I think you may be able to pass
>
> -pc64
>
> to the intel Fortran compiler to make 64 bit executables, but again 
> I've not had time to try this yet, and am just inferring this from 
> something I saw on the net.
>
> Has anyone on this list who is using an opteron compiled fortran 64 
> bit with the intel compilers ?
>
> Cheers,
>
> Tom
>
>
> On Tue, 23 Nov 2004, Yonatan Oren wrote:
>
>> Hi
>> this is what i get:
>>
>>>
>>> Hi,
>>>
>>> ok, try
>>>
>>> file configs/wavetoy_mpi/build/Cactus/main/flesh.cc.o
>>
>>
>> result :  configs/wavetoy_mpi/build/Cactus/main/flesh.cc.o: ELF 
>> 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
>>
>>>
>>> You only need a 64 bit fortran compiler if you need fortran and if 
>>> you are compiling other stuff 64 bit.
>>
>>
>> I need fortran, because I want to use whisky, which includes fortran 
>> code.
>>
>>>
>>> Could you try 'file' on one of your mpich libraries too, just to see 
>>> if they have been compiled 64 or 32 bit - I would assume from the 
>>> library directory that they are 64 bit.
>>
>>
>> yes:
>> spike >file /opt/mpich/ch-p4/lib64/mpe_prof.o
>> /opt/mpich/ch-p4/lib64/mpe_prof.o: ELF 64-bit LSB relocatable, AMD 
>> x86-64, version 1 (SYSV), not stripped
>>
>> spike >file /opt/mpich/ch-p4/lib64/libtvmpich.so.1.0
>> /opt/mpich/ch-p4/lib64/libtvmpich.so.1.0: ELF 64-bit LSB shared 
>> object, AMD x86-64, version 1 (SYSV), not stripped
>>
>> so what is the verdict?
>>
>> Yonatan
>>
>>
>>>
>>> Cheers,
>>>
>>> Tom
>>>
>>> On Tue, 23 Nov 2004, Yonatan Oren wrote:
>>>
>>>> Hi TOm,
>>>>
>>>> i did as you asked. The outputs are:
>>>> ===========================================================
>>>> spike >file a.out
>>>> a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
>>>> for GNU/Linux 2
>>>> .2.5, dynamically linked (uses shared libs), not stripped
>>>>
>>>> and
>>>>
>>>> spike >file configs/wavetoy_mpi/lib/libCactus.a
>>>> configs/wavetoy_mpi/lib/libCactus.a: current ar archive
>>>> =========================================================
>>>>
>>>> The seond one didnt say much. What are my options if i want
>>>> a 64 bit fortran compiler? and do i need one?
>>>
>>>
>>



More information about the Users mailing list