This thread is locked.Only browsing is available.
Top Page > Browsing
compiling issues
Date: 2017/04/08 20:11
Name: Luca

Dear Developers

I am experiencing issues when compiling openmx3.8.

My OS is a CentOS release 6.3
my hardware is Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
my compiler is parallel_studio_xe_2017.2.050 with OPENMPI-2.0.2
my makefile has the following lines:

CC = mpicc -O3 -Dscalapack -xHOST -ip -no-prec-div -qopenmp -I/home/luca/intel/mkl/include/fftw
FC = mpif90 -O3 -xHOST -ip -no-prec-div -qopenmp
LIB= -L/home/luca/intel/mkl/lib -mkl=parallel -lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lifcore -lmpi

When running make I get the error:

elpa1.o: In function `elpa1_mp_tridiag_real_':
elpa1.f90:(.text+0x2ef): undefined reference to `mpi_comm_rank_'
elpa1.f90:(.text+0x30d): undefined reference to `mpi_comm_size_'
elpa1.f90:(.text+0x328): undefined reference to `mpi_comm_rank_'
elpa1.f90:(.text+0x346): undefined reference to `mpi_comm_size_'
elpa1.f90:(.text+0x11e8): undefined reference to `mpi_allreduce_'
elpa1.f90:(.text+0x1570): undefined reference to `mpi_bcast_'
.........

Could you please help me ?


P.S I erased -lmpif90 -lmpif77 from he makefile because I get the error: cannot find -lmpi_f90
メンテ
Page: [1]

Re: compiling issues ( No.1 )
Date: 2017/04/09 13:11
Name: T. Ozaki

Hi,

> P.S I erased -lmpif90 -lmpif77 from he makefile because
> I get the error: cannot find -lmpi_f90

Please check a directory where the MPI Fortran libraries are stored,
and point the directory by "-L".

Also, please take a look at the page 11 of the following PDF file:
http://www.openmx-square.org/tech_notes/OpenMX-Compile.pdf

Regards,

TO


メンテ
Re: compiling issues ( No.2 )
Date: 2017/04/09 21:45
Name: Luca

Dear prof. Ozaki

thank you for your answer and hints. I was able to compile adding the line
-L/home/luca/.../openmpi-202/lib -lmpi_usempif08

All the best.
Luca
メンテ

Page: [1]