<div class="gmail_quote">On Sat, Jun 2, 2012 at 7:02 AM, w_ang_temp <span dir="ltr"><<a href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div>Hello,<br> I reconfigure the mpi and petsc today. I want to use ifort as the compiler. <br>And there is a problem.</div>
<div> Before I reconfigure them, both compiling and running are ok (1.make ex4f;<br>2.mpiexec -n 2 ./ex4f;The name 'ex4f' is my project name, not the petsc <br>example name).And I have done lots of work before.Since I think the project<br>
is inefficient, I want to use ifort.<br> After the reconfiguration, the compiling seems ok(make ex4f) and I can get <br>the executable file. But when I run it(mpiexec -n 2 ./ex4f), it does not work<br>('forrtl: severe (32): invalid logical unit number, unit -1215421032, file unknown'). <br>
</div></div></blockquote><div><br></div><div>Show us the full stack trace (the full PETSc error message is good, a gdb stack trace would be better). It's quite possible that that you have some code that is not standards compliant, thus it behaves differently with different compilers.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial"><div>Besides, both compiling and running are ok when I test the petsc examples.</div>
<div> Before I reconfigure them, the configurations are as follows:<br> mpi: ./configure --prefix=/home/geo/soft/mpich2<br> PETSc: ./configure --download-f-blas-lapack=1 <br> And now the configurations are the following:<br>
mpi: ./configure --prefix=/home/geo/soft/mpich2<br> CC=icc CXX=icpc F77=ifort FC=ifort<br> PETSc: ./configure --with-mpi-dir=/home/geo/soft/mpich2<br> --download-f-blas-lapack=1 --with-x=1</div>
<div> I do not know why it does not work when I run it after the reconfiguration.</div>
<div><br>The information of the compiling is as follows.</div>
<div>(1)Information(make ex4f) before the reconfiguration:<br>mpif90 -c -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -g <br> -I/home/ddc/soft/petsc/petsc-3.2-p7/include <br> -I/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include <br>
-I/home/ddc/soft/mpich2/include <br> -o ex4f.o ex4f.F<br>---------------------------------^<br>mpif90 -g -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o <br> -L/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib <br>
-lpetsc -lpthread -Wl,-rpath,/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -lm <br> -L/home/ddc/soft/mpich2/lib -L/usr/lib/gcc/i486-linux-gnu/4.4.3 <br> -L/home/ddc/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32 <br>
-L/home/ddc/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32 <br> -L/usr/lib/i486-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -lmpichf90
-lifport <br> -lifcore -limf -lsvml -lm -lipgo -lirc -lirc_s -lm -ldl -lmpich -lopa -lmpl -lrt <br> -lpthread -lgcc_s -ldl <br>/bin/rm -f -f ex4f.o</div>
<div>(2)Information(make ex4f) after the reconfiguration:<br>/home/geo/soft/mpich2/bin/mpif90 -c <br> -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -g<br> -I/home/geo/soft/petsc/petsc-3.2-p7/include <br> -I/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include <br>
-I/home/geo/soft/mpich2/include <br> -o ex4f.o ex4f.F<br>---------------------------------^<br>/home/geo/soft/mpich2/bin/mpif90 -g <br> -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o <br> -L/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib <br>
-lpetsc -lpthread -Wl,-rpath,/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -ldl <br> -L/home/geo/soft/mpich2/lib -lmpich -lopa -lmpl -lrt -lpthread <br> -L/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/ia32 <br>
-L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/ia32 <br> -L/opt/intel/composer_xe_2011_sp1.
10.319/mkl/lib/ia32 <br> -L/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21 <br> -L/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32 <br> -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32 <br>
-L/usr/lib/gcc/i486-linux-gnu/4.4.3 <br> -L/usr/lib/i486-linux-gnu -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s <br> -lirc -lirc_s -lmpichf90 -lifport -lifcore -lm -lm -ldl -lmpich -lopa -lmpl -lrt <br> -lpthread -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s -lirc -lirc_s -ldl <br>
/bin/rm -f -f ex4f.o</div>
<div>(3)When reconfiguring the petsc, the information about compilers is as follows.<br> Compilers:<br> C Compiler: /home/geo/soft/mpich2/bin/mpicc -wd1572 -Qoption,cpp,--extended_float_type -g<br> Fortran Compiler: /home/geo/soft/mpich2/bin/mpif90 -g<br>
</div>
<div> Thanks. </div>
<div> Jim</div></div><br><br><span title="neteasefooter"><span></span></span></blockquote></div><br>