Re: Student ( No.1 ) |
- Date: 2017/12/14 06:04
- Name: Amirhossein Bayani
- I have changed the lines to:
CC = mpicc -fopenmp -O3 -I/usr/local/include FC = mpif90 -fopenmp -O3 -I/usr/local/include LIB= -L/usr/local/lib -fftw3 -llapack -lblas -lg2c -static
and now I got this error:
gcc: error: unrecognized command line option ‘-fftw3’ makefile:253: recipe for target 'openmx' failed make: *** [openmx] Error 1
|
Re: Student ( No.2 ) |
- Date: 2017/12/14 09:55
- Name: Chi-Cheng Lee <cclee.physics@gmail.com>
- I think -fftw3 should be -lfftw3, otherwise you need to install FFTW package first,
or you need to provide the path for the FFTW package using -L/.../... in case it is not in the default path.
|
Re: Student ( No.3 ) |
- Date: 2017/12/14 12:10
- Name: Yung-Ting Lee <ytlee@issp.u-tokyo.ac.jp>
- The Linux OS of desktop computer that I used is Ubuntu 16.04.
The makefile for OpenMX-3.8.3: -------------------------------------------- CC = mpicc -O3 -ffast-math -fopenmp -I/usr/local/include -I/home/ytl/mpi/openmpi-2.0.2/ompi/include FC = mpif90 -O3 -ffast-math -fopenmp -I/home/ytl/mpi/openmpi-2.0.2/ompi/include LIB= -L/usr/local/lib -lfftw3 -L/home/ytl/mpi/openmpi-2.0.2/ompi -lmpi -lmpi_mpifh -L/home/ytl/LAPACK/lapack-3.7.0 -llapack -lrefblas -lgfortran --------------------------------------------
The packages I installed are gfortran, fftw-3.3.6-pl1, LAPACK-3.7.0, openmpi-2.0.2 on Ubuntu 16.04 for your reference.
Best regards, Yung-Ting Lee.
|
Re: Student ( No.4 ) |
- Date: 2017/12/15 01:17
- Name: Amirhossein Bayani
- Dear Yung-Ting Lee:
Thank you so much for your help. I have just changed the -lrefblas to -lblas and it was completely compiled. Without this change I got an error due to unknown -lrefblas.
|
Re: Student ( No.5 ) |
- Date: 2017/12/15 13:14
- Name: Yung-Ting Lee <ytlee@issp.u-tokyo.ac.jp>
- Dear Amirhossein Bayani,
It's my pleasure. You're welcome.
Best regards, YT Lee.
|