[FLASH-USERS] How to install FLASH4.6 in centOS

Ryan Farber rjfarber at umich.edu
Wed May 15 11:25:50 EDT 2019


Hi Zhang,

The fortran compiler is set by FCOMP in Makefile.h. For example, I have
FCOMP   = ${MPI_HOME}/bin/mpifort

and earlier I set MPI_HOME = /usr/local

Note that the mpi* compilers are really just wrappers of ifort or gfortran.
For example, I have:

[rjfarber at cepheus ~]$ /usr/local/bin/mpifort -v
ifort version 15.0.3

[rjfarber at cepheus ~]$ /usr/local/bin/mpif90 -v
ifort version 15.0.3

Note that ifort is intel's fortran compiler which should be best if you
have intel cores in your machine.
If you want to use gfortran, then you'll have to modify your MPI build, I
think. I did that a while ago to switch from gfotran to intel, and I don't
remember how it works exactly. Stackoverflow likely has some useful info,
though.

Best,
--------
Ryan


On Wed, May 15, 2019 at 8:41 AM zdy0903 <zdy0903 at stu.xjtu.edu.cn> wrote:

> Hi Ryan
>
>  Thanks for your reply! I think maybe I find the cause of this. But I
> don't know how to solve it. There is an intel complier ifortran being
> installed in the CentOS before. And I install the gfortran which is
> necessary for excuting make. However, it automaticly use ifortran rather
> than gfortran when excuting make process, which comes out the warnings like
>
> *ifort: command line warning #10006: ignoring unknown option
> '-fdefault-real-8'*
> *ifort: command line warning #10006: ignoring unknown option
> '-fdefault-double-8'*
> *ifort: command line warning #10157: ignoring option '-W'; argument is of
> wrong type*
> */usr/local/mpich2//bin/mpif90 -ggdb -c -O2 -fdefault-real-8
> -fdefault-double-8 -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8
> -DNZB=1 -DN_DIM=2 tmr_create.F90*
>
>   Usually, which complier is applied is set in the Makefile.h. Do you know
> how to set gfortran in Makefile.h? Or, do you have any other suggestions?
> Thank you very much!
>
>
> Your
>
> Zhang
>
>
>
>
>
> -----原始邮件-----
> *发件人:*"Ryan Farber" <rjfarber at umich.edu>
> *发送时间:*2019-05-13 23:46:26 (星期一)
> *收件人:* zdy0903 <zdy0903 at stu.xjtu.edu.cn>
> *抄送:* flash-users <flash-users at flash.uchicago.edu>
> *主题:* Re: [FLASH-USERS] How to install FLASH4.6 in centOS
>
> Hi Zhang,
>
> It sounds like there is an issue with the Makefile.h in your
> /...path_to_flash/sites/your_hostname/Makefile.h file. (Though, if you
> haven't created a directory in sites matching your hostname then it'll use
> the Makefile.h in sites/Prototypes/Linux/ (unless that has changed between
> 4.2.2 and 4.6)).
>
> Have you updated the Makefile.h with the new paths for mpich, hdf5, etc It
> sounds like you have since it compiled successfully.
> The warnings suggest you may have forgotten to modify FFLAGS_OPT. I'm not
> intimately familiar with compiler options, but I use -r8 to make fortran
> reals default to double precision.
>
> I haven't seen your runtime error before, but think it would be a good
> idea for you to look over your Makefile.h (double check MPI_PATH or
> MPI_HOME (whichever is used later on), HDF5_PATH and so on are correct for
> the system, double check FCOMP, COMP, CPPCOMP, LINK have correct paths for
> the system, and that FFLAGS_OPT (or FFLAGS_DEBUG if you're using '-debug'
> setup option) and CFLAGS_OPT have the desired compiler options.
>
> Best,
> --------
> Ryan
>
>
> On Mon, May 13, 2019 at 10:08 AM zdy0903 <zdy0903 at stu.xjtu.edu.cn> wrote:
>
>> Hi!
>>
>>
>>
>>   Recently, we want to install FLASH4.6 and related application like
>> mpich, HDF5, Hypre in centOS system. Before, we have successfully install
>> it on Ubuntu system. However, after all the intallation, we meet several
>> problems.
>>
>>
>>
>>   Firstly, when excuting "make" process, we meet a warning like:
>>
>> *warning #10006: ignoring unknown option '-fdefault-real-8'*
>>
>> *warning #10006: ignoring unknown option '-fdefault-double-8'*
>>
>> *warning #10157: ignoring option '-W'; argument is of wrong type *
>>
>>
>>
>>   This is not shown on the installation process for ubuntu system.
>> However, it can still “make” sucessfully. But when we excute mpich -np 2
>> ./flash4, there is problem like:
>>
>> *./flash4: symbol lookup error: ./flash4: undefined symbol:
>> for__pthread_mutex_unlock_ptr*
>>
>> *./flash4: symbol lookup error: ./flash4: undefined symbol:
>> for__pthread_mutex_unlock_ptr *
>>
>>
>>
>>   And the process stop immediately.
>>
>>
>>
>>   we use CentOS 6.1, mpich3.3 hypre-2.11.1 hdf5-1.8.17. Do you know how
>> to solve this problem?
>>
>>
>>
>>   Thank you very much!
>>
>>
>>
>>
>>
>>
>>
>> Yours
>>
>>
>>
>> Zhang
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20190515/5bc8edf7/attachment-0001.htm>


More information about the flash-users mailing list