[petsc-users] About the ./configure of petsc and mpi

w_ang_temp w_ang_temp at 163.com
Sat Jun 2 07:02:43 CDT 2012


Hello,
    I reconfigure the mpi and petsc today. I want to use ifort as the compiler.
And there is a problem.
    Before I reconfigure them, both compiling and running are ok (1.make ex4f;
2.mpiexec -n 2 ./ex4f;The name 'ex4f' is my project name, not the petsc
example name).And I have done lots of work before.Since I think the project
is inefficient, I want to use ifort.
   After the reconfiguration, the compiling seems ok(make ex4f) and I can get
the executable file. But when I run it(mpiexec -n 2 ./ex4f), it does not work
('forrtl: severe (32): invalid logical unit number, unit -1215421032, file unknown').
Besides, both compiling and running are ok when I test the petsc examples.
   Before I reconfigure them, the configurations are as follows:
     mpi:   ./configure --prefix=/home/geo/soft/mpich2
     PETSc: ./configure --download-f-blas-lapack=1 
   And now the configurations are the following:
     mpi:   ./configure --prefix=/home/geo/soft/mpich2
                           CC=icc CXX=icpc F77=ifort FC=ifort
     PETSc: ./configure --with-mpi-dir=/home/geo/soft/mpich2
                    --download-f-blas-lapack=1 --with-x=1
   I do not know why it does not work when I run it after the reconfiguration.

The information of the compiling is as follows.
(1)Information(make ex4f) before the reconfiguration:
mpif90 -c -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -g  
 -I/home/ddc/soft/petsc/petsc-3.2-p7/include
 -I/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include
 -I/home/ddc/soft/mpich2/include   
 -o ex4f.o ex4f.F
---------------------------------^
mpif90 -g  -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o 
 -L/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib 
 -lpetsc -lpthread -Wl,-rpath,/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -lm
 -L/home/ddc/soft/mpich2/lib -L/usr/lib/gcc/i486-linux-gnu/4.4.3
 -L/home/ddc/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32
 -L/home/ddc/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32
 -L/usr/lib/i486-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -lmpichf90 -lifport
 -lifcore -limf -lsvml -lm -lipgo -lirc -lirc_s -lm -ldl -lmpich -lopa -lmpl -lrt
 -lpthread -lgcc_s -ldl
/bin/rm -f -f ex4f.o
(2)Information(make ex4f) after the reconfiguration:
/home/geo/soft/mpich2/bin/mpif90 -c
 -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -g
 -I/home/geo/soft/petsc/petsc-3.2-p7/include
 -I/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include
 -I/home/geo/soft/mpich2/include   
 -o ex4f.o ex4f.F
---------------------------------^
/home/geo/soft/mpich2/bin/mpif90 -g 
 -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o 
 -L/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib 
 -lpetsc -lpthread -Wl,-rpath,/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -ldl
 -L/home/geo/soft/mpich2/lib -lmpich -lopa -lmpl -lrt -lpthread
 -L/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/ia32
 -L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/ia32
 -L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/ia32
 -L/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21
 -L/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32
 -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32
 -L/usr/lib/gcc/i486-linux-gnu/4.4.3
 -L/usr/lib/i486-linux-gnu -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s
 -lirc -lirc_s -lmpichf90 -lifport -lifcore -lm -lm -ldl -lmpich -lopa -lmpl -lrt
 -lpthread -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s -lirc -lirc_s -ldl
/bin/rm -f -f ex4f.o
(3)When reconfiguring the petsc, the information about compilers is as follows.
   Compilers:
     C Compiler: /home/geo/soft/mpich2/bin/mpicc -wd1572 -Qoption,cpp,--extended_float_type -g
     Fortran Compiler: /home/geo/soft/mpich2/bin/mpif90 -g

      Thanks.  
                                                Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120602/41b7163d/attachment.html>


More information about the petsc-users mailing list