|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Edit:
Getting an answer fast is very important to me. The question was also posted here: LINUX • openSUSE - Intel Fortran Problem: intel9 I know this qualifies as crossposting but I really need an answer. Thanks for your help! |
|
||||
|
The man page doesn't say anything about a -compiler option for mpif77, it does say you can set environment variables to point it at a specific compiler.
Code:
export OMPI_F77=/path/to/intel/compiler/executable After you do that, leave the -compiler option out of your mpif77 command and it should work. I should mention that I'm not really a fortran programmer, and I don't have very much experience with intel's compilers. Last edited by kdemello; 18-Oct-2009 at 18:08. Reason: correct envrionment variable name |
|
||||
|
thanks. this is getting me a bit further - though not all the way. After linking to "ifort" I now get the following error:
gfortran: unrecognized option '-pad' gfortran: language W not recognized gfortran: language W not recognized /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:<file>.f: file format not recognized; treating as linker script /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:<file>.f:2: syntax error collect2: ld returned 1 exit status mpif77: No such file or directory As you can see, the issue is now the option "-pad". Does anyone know more about the mpif77 compiler in general and might help me out? Thanks! |
|
||||
|
Hi again!
I still struggling. I reinstalled openMPI and followed the instructions on their website (FAQ: Building Open MPI) I also re-entered the command suggested above, only this time I did not omit the '-compiler intel9' part of my command. Here's what I got: # mpif77 -compiler intel9 -O3 -ip -pad -xW -o <file> <file>.f ifort: command line warning #10156: ignoring option '-c'; no argument required ifort: error #10236: File not found: 'intel9' <file>.f(9224): warning #8043: The extra characters in the format specification will be ignored ['(8(F16.7,1X)))'] WRITE(14,'(8(F16.7,1X)))') X1, X2, X3, RO_FLUC, VEL_X_FLUC, -----------------------------^ And that's it - it stopped there and never finished compiling. Any suggestions as to what might help? Thanks! |
|
||||
|
The problem was essentially a mismatch between the 32bit compiler and a 64bit library.
Here's what I did to make it work (just in case someone runs into the same problem): with openMPI: # ./configure OMPI_F77=/opt/intel/Compiler/11.1/056/bin/intel64/ifort --with-wrapper-fflags='-compiler -03 -ip -pad -xW -w -02' OMPI_FFLAGS='-compiler -03 -ip -pad -xW -w -02' the compiler command itsself: # mpif77 -O3 -ip -pad -xW -o <file> <file>.f This compiled just fine. |
![]() |
| Bookmarks |
| Tags |
| fortran 77, intel compiler, open mpi, openmpi, solved |
| Thread Tools | |
| Display Modes | |
|
|