[MITgcm-support] mpi problem
QIANG LI
jazbuyabc at gmail.com
Mon Mar 16 14:54:20 EDT 2009
MITgcmers:
I had problems to run MITgcm with MPICH. This is the error message:
/home/user/liqiang/MITgcm/exp/run/./mitgcmuv: relocation error:
/home/user/liqiang/MITgcm/exp/run/./mitgcmuv: undefined symbol:
mpi_comm_rank__
It looks I forgot to quote some libs.
-------------------------------------------------------------------------------------------------------------------------------
Here is how I ran it:
../../../tools/genmake2 -mpi
-of=../../../tools/build_options/cluster_g77+mpi_cg01 -mods=../code
make depend
make
mpirun -np 1 -machinefile mf ./mitgcmuv
-------------------------------------------------------------------------------------------------------------------------------
This is my option file (cluster_g77+mpi_cg01):
#!/bin/bash
FC='/usr/mpich-gm-gcc32-1.2.6..14a/bin/mpif77'
CC='/usr/mpich-gm-gcc32-1.2.6..14a/bin/mpicc'
LIBS='-L/usr/mpich-gm-gcc32-1.2.6..14a/lib'
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4'
INCLUDEDIRS='/usr/mpich-gm-gcc32-1.2.6..14a/include'
INCLUDES='-I/usr/mpich-gm-gcc32-1.2.6..14a/include'
CPP='/lib/cpp -traditional -P'
NOOPTFLAGS='-O0'
#LIBS='-lmpi -llam'
if test "x$IEEE" = x ; then
# No need for IEEE-754
FFLAGS='-Wimplicit -Wunused -Wuninitialized'
FOPTIM='-O3 -malign-double -funroll-loops'
else
# Try to follow IEEE-754
FFLAGS='-Wimplicit -Wunused -ffloat-store'
FOPTIM='-O0 -malign-double'
fi
# netcdf
#LIBS="-lnetcdf"
-------------------------------------------------------------------------------------------------------------------------------
Here is the CPU information:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 9
cpu MHz : 2791.062
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5570.56
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 9
cpu MHz : 2791.062
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5570.56
processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 9
cpu MHz : 2791.062
cache size : 512 KB
physical id : 3
siblings : 2
runqueue : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5570.56
processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 9
cpu MHz : 2791.062
cache size : 512 KB
physical id : 3
siblings : 2
runqueue : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5570.56
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20090316/35daf1ca/attachment.htm>
More information about the MITgcm-support
mailing list