Compiling Elmer with Intel Fortran

Discussion about building and installing Elmer
Post Reply
tomx
Posts: 8
Joined: 31 Oct 2012, 15:55
Antispam: Yes

Compiling Elmer with Intel Fortran

Post by tomx »

Hi,
I want to compile Elemer with Intel Fortran and MPI enabled. I am using script (edited) from following post:

I am using MPICH version 1.2.7 and Intel Fortran 11.1

When I run it I have received following message during 'matc' compiling (and other packages too):

Code: Select all

checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
The config.log file is attached to this post.

Has anyone faced with that problem?

--
Tom
Attachments
config.log
(11.72 KiB) Downloaded 392 times
Epy
Posts: 11
Joined: 12 Nov 2012, 02:29
Antispam: Yes
Location: CA, USA
Contact:

Re: Compiling Elmer with Intel Fortran

Post by Epy »

By the looks of the log file, the configure script is using gcc, not icc as it should be. -x tells gcc to turn off the specification of a language (http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html) and -x tells icc/ifort what processor extensions to use (http://www2.fkf.mpg.de/edv/docs/intel_c ... _lcase.htm). Wasn't aware of a C compiler specifically for MPI stuff (mpicc?), might try specifying your compilers ahead of time with export, i.e. export CC=icc and export FC=ifort. Sorry I can't be of more help.
tomx
Posts: 8
Joined: 31 Oct 2012, 15:55
Antispam: Yes

Re: Compiling Elmer with Intel Fortran

Post by tomx »

Thanks for your answer.
I probably found a solution (partially). I have compiled openmpi with ifort. And then I have recompiled Elmer in mpi mode. But I also have another problem; during compilation of fem package I have obtained following error:

Code: Select all

Making check in .
make[2]: Entering directory `/home/tom/elmerfem-ompih28/fem/src'
/home/tom/openmpi/bin/mpif90 -O -m64 -fPIC -fPIC -I. -Ibinio -I../binio -c ParticleUtils.f90
fortcom: Error: ParticleUtils.f90, line 5739: Not a valid value for the char-expr in this connect-spec.   ['stream']
      OPEN( UNIT=VtiUnit, FILE=VtiFile, FORM = 'unformatted', ACCESS = 'stream' )
-----------------------------------------------------------------------^
compilation aborted for ParticleUtils.f90 (code 1)
make[2]: *** [ParticleUtils.o] Error 1
make[2]: Leaving directory `/home/tom/elmerfem-ompih28/fem/src'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/tom/elmerfem-ompih28/fem/src'
make: *** [check-recursive] Error 1
and I don't know what to do with it.

Tom
Post Reply