Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2020-03-31 21:02:38

m_golbs
Member
From: Germany
Registered: 2009-11-09
Posts: 126

-lmpi_f77 ; mumps-5.1.2, openmpi 3.1.3; Makefile.inc

Hello,

I don't understand why -lmpi_f77 in Makefile.inc from mumps-5.1.2. ?  "..mpif77 and mpif90 are deprecated as of Open MPI v1.7.." ..." ..It is in your interest to convert to mpifort now...  Wiki open-mpi org " But how I have to modify "LIBPAR = $(SCALAP) $(LAPACK)  -lmpi -lmpi_f77" so, that it works on openmpi 3.1.3?

I test: "LIBPAR  = $(SCALAP) $(LAPACK) -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi" but

a - csol_fwd.o
a - csol_matvec.o
a - csol_root_parallel.o
a - ctools.o
a - ctype3_root.o
ranlib ../lib/libcmumps.a
make[3]: Verzeichnis „/tmp/mumps-5.1.2/src“ wird verlassen
make[2]: Verzeichnis „/tmp/mumps-5.1.2/src“ wird verlassen
make[1]: Verzeichnis „/tmp/mumps-5.1.2“ wird verlassen
(cd examples ; make c)
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird betreten
gfortran -O  -I/usr/lib/openmpi/include -I. -I../include -c csimpletest.F -o csimpletest.o
gfortran -o csimpletest -O  csimpletest.o  ../lib/libcmumps.a ../lib/libmumps_common.a -L/usr/lib  -lmetis -L../PORD/lib/ -lpord -L/usr/lib -lesmumps -lscotch -lscotcherr -lscalapack-openmpi -lblacs-openmpi  -lblacsF77init-openmpi -lblacsCinit-openmpi -llapack -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi -lblas -lpthread
/usr/bin/ld: ../lib/libcmumps.a(cmumps_driver.o): undefined reference to symbol 'mpi_allreduce_'
/usr/bin/ld: //usr/lib/x86_64-linux-gnu/libmpi_mpifh.so.20: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:42: csimpletest] Fehler 1
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird verlassen
make: *** [Makefile:43: cexamples] Fehler 2
golbs@debian8-amd64:/tmp/mumps-5.1.2$

When I use "LIBPAR = $(SCALAP) $(LAPACK)  -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi"

a - dsol_bwd.o
a - dsol_c.o
a - dsol_fwd_aux.o
a - dsol_fwd.o
a - dsol_matvec.o
a - dsol_root_parallel.o
a - dtools.o
a - dtype3_root.o
ranlib ../lib/libdmumps.a
make[3]: Verzeichnis „/tmp/mumps-5.1.2/src“ wird verlassen
make[2]: Verzeichnis „/tmp/mumps-5.1.2/src“ wird verlassen
make[1]: Verzeichnis „/tmp/mumps-5.1.2“ wird verlassen
(cd examples ; make d)
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird betreten
gfortran -O  -I/usr/lib/openmpi/include -I. -I../include -c dsimpletest.F -o dsimpletest.o
gfortran -o dsimpletest -O  dsimpletest.o  ../lib/libdmumps.a ../lib/libmumps_common.a -L/usr/lib  -lmetis -L../PORD/lib/ -lpord -L/usr/lib -lesmumps -lscotch -lscotcherr -lscalapack-openmpi -lblacs-openmpi  -lblacsF77init-openmpi -lblacsCinit-openmpi -llapack  -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lblas -lpthread
/usr/bin/ld: warning: libmpi_usempif08.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempif08.so.40
/usr/bin/ld: warning: libmpi_usempi_ignore_tkr.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempi_ignore_tkr.so.40
/usr/bin/ld: warning: libmpi_mpifh.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_mpifh.so.40
/usr/bin/ld: warning: libmpi.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi.so.40
/usr/bin/ld: warning: libgfortran.so.3, needed by //usr/lib/x86_64-linux-gnu/libmpi_usempif08.so.20, may conflict with libgfortran.so.5
gcc -O  -I/usr/lib/openmpi/include -DAdd_ -I. -I../include -I../src -c c_example.c -o c_example.o
gfortran -o c_example -O  c_example.o ../lib/libdmumps.a ../lib/libmumps_common.a -L/usr/lib  -lmetis -L../PORD/lib/ -lpord -L/usr/lib -lesmumps -lscotch -lscotcherr -lscalapack-openmpi -lblacs-openmpi  -lblacsF77init-openmpi -lblacsCinit-openmpi -llapack  -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lblas -lpthread
/usr/bin/ld: warning: libmpi_usempif08.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempif08.so.40
/usr/bin/ld: warning: libmpi_usempi_ignore_tkr.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempi_ignore_tkr.so.40
/usr/bin/ld: warning: libmpi_mpifh.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_mpifh.so.40
/usr/bin/ld: warning: libmpi.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi.so.40
/usr/bin/ld: warning: libgfortran.so.3, needed by //usr/lib/x86_64-linux-gnu/libmpi_usempif08.so.20, may conflict with libgfortran.so.5
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird verlassen
(cd examples ; make multi)
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird betreten
gfortran -O  -I/usr/lib/openmpi/include -I. -I../include -c multiple_arithmetics_example.F -o multiple_arithmetics_example.o
gfortran -o multiple_arithmetics_example -O  multiple_arithmetics_example.o ../lib/libsmumps.a ../lib/libmumps_common.a ../lib/libdmumps.a ../lib/libmumps_common.a ../lib/libcmumps.a ../lib/libmumps_common.a ../lib/libzmumps.a ../lib/libmumps_common.a -L/usr/lib  -lmetis -L../PORD/lib/ -lpord -L/usr/lib -lesmumps -lscotch -lscotcherr -lscalapack-openmpi -lblacs-openmpi  -lblacsF77init-openmpi -lblacsCinit-openmpi -llapack  -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lblas -lpthread
/usr/bin/ld: warning: libmpi_usempif08.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempif08.so.40
/usr/bin/ld: warning: libmpi_usempi_ignore_tkr.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_usempi_ignore_tkr.so.40
/usr/bin/ld: warning: libmpi_mpifh.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi_mpifh.so.40
/usr/bin/ld: warning: libmpi.so.20, needed by /usr/lib/libblacs-openmpi.so, may conflict with libmpi.so.40
/usr/bin/ld: warning: libgfortran.so.3, needed by //usr/lib/x86_64-linux-gnu/libmpi_usempif08.so.20, may conflict with libgfortran.so.5
make[1]: Verzeichnis „/tmp/mumps-5.1.2/examples“ wird verlassen
golbs@debian8-amd64:/tmp/mumps-5.1.2$ 

When I test the examples I get:

golbs@debian8-amd64:/opt/salome_code-aster/aster144/public/mumps-5.1.2/examples$ ./c_example 
Solution is : (    1.00      2.00)
golbs@debian8-amd64:/opt/salome_code-aster/aster144/public/mumps-5.1.2/examples$ ./csimpletest 
4
6
8

k
At line 36 of file csimpletest.F (unit = 5, file = 'stdin')
Fortran runtime error: Bad integer for item 2 in list input

Error termination. Backtrace:
#0  0x7efe3c7d58b0 in ???
#1  0x7efe3c7d6395 in ???
#2  0x7efe3c7d6b1a in ???
#3  0x7efe3c9c52c2 in ???
#4  0x7efe3c9c8392 in ???
#5  0x7efe3c9c98f9 in ???
#6  0x55b6aa17ceee in ???
#7  0x55b6aa17d4cb in ???
#8  0x7efe3c42409a in __libc_start_main
	at ../csu/libc-start.c:308
#9  0x55b6aa17ca09 in ???
#10  0xffffffffffffffff in ???

golbs@debian8-amd64:/opt/salome_code-aster/aster144/public/mumps-5.1.2/examples$ ls -l
insgesamt 15112
-rwxr-xr-x 1 golbs golbs 1840008 Mär 31 23:34 c_example
-rw-r--r-- 1 golbs golbs    2338 Apr  3  2019 c_example.c
-rw-r--r-- 1 golbs golbs    3088 Mär 31 23:34 c_example.o
-rwxr-xr-x 1 golbs golbs 1855656 Mär 31 23:32 csimpletest
-rw-r--r-- 1 golbs golbs    2514 Apr  3  2019 csimpletest.F
-rw-r--r-- 1 golbs golbs    8872 Mär 31 23:32 csimpletest.o
-rwxr-xr-x 1 golbs golbs 1830880 Mär 31 23:34 dsimpletest
-rw-r--r-- 1 golbs golbs    2514 Apr  3  2019 dsimpletest.F
-rw-r--r-- 1 golbs golbs    8864 Mär 31 23:34 dsimpletest.o
-rw-r--r-- 1 golbs golbs     322 Apr  3  2019 input_simpletest_cmplx
-rw-r--r-- 1 golbs golbs     189 Apr  3  2019 input_simpletest_real
-rw-r--r-- 1 golbs golbs    2308 Apr  3  2019 Makefile
-rwxr-xr-x 1 golbs golbs 6141672 Mär 31 23:34 multiple_arithmetics_example
-rw-r--r-- 1 golbs golbs    3928 Apr  3  2019 multiple_arithmetics_example.F
-rw-r--r-- 1 golbs golbs    7896 Mär 31 23:34 multiple_arithmetics_example.o
-rw-r--r-- 1 golbs golbs    1505 Apr  3  2019 README
-rwxr-xr-x 1 golbs golbs 1826800 Mär 31 23:33 ssimpletest
-rw-r--r-- 1 golbs golbs    2514 Apr  3  2019 ssimpletest.F
-rw-r--r-- 1 golbs golbs    8720 Mär 31 23:33 ssimpletest.o
-rwxr-xr-x 1 golbs golbs 1863832 Mär 31 23:33 zsimpletest
-rw-r--r-- 1 golbs golbs    2514 Apr  3  2019 zsimpletest.F
-rw-r--r-- 1 golbs golbs    8872 Mär 31 23:33 zsimpletest.o

golbs@debian8-amd64:/opt/salome_code-aster/aster144/public/mumps-5.1.2/examples$ ./multiple_arithmetics_example 
Creation of all instaces went well

Entering SMUMPS 5.1.2 with JOB =  -2
      executing #MPI =      1, without OMP

Entering DMUMPS 5.1.2 with JOB =  -2
      executing #MPI =      1, without OMP

Entering CMUMPS 5.1.2 with JOB =  -2
      executing #MPI =      1, without OMP

Entering ZMUMPS 5.1.2 with JOB =  -2
      executing #MPI =      1, without OMP

System is debian 10 64bit.

Thanks and greeting Markus

Last edited by m_golbs (2020-03-31 22:45:04)


The superfluous chase, is to miss the essential.
Jules Saliège

Offline