[RegCNET] problem using different compiler..

bixq bixq at ictp.it
Wed Sep 29 13:57:05 CEST 2010


Hi, Deepika:

You use Linux PC, right ?
It seems ifort has been well installed, now you have to install
subversion and openmpi,

It's easy for the installation of subversion.

To install openmpi, google and download the package (version 1.4.2
or the beta version). untar it and enter the directory.

1.
./configure CC=icc CXX=icpc FC=ifort F77=ifort F90=ifort F95=ifort
             --prefix=/opt/openmpi
make
make install

(you have to have the write-permission under /opt)

2. edit .bashrc (or .cshrc if you use tcsh) file, and add two lines:

export PATH=/opt/openmpi/bin:$PATH
export LD_LIBRARY_PATH=/opt/openmpi/lib:$LD_LIBRARY_PATH

You know, when you installed, you might already get mpif90 installed.
This mpif90 is based on g95 (or gfortran, sorry I am not sure). But you
know, Intel IFC is faster, so you'd better do the steps as I suggested.

That's all you have to do.
Good luck !
Xunqiang Bi

On Wed, 29 Sep 2010, deepika rao wrote:

> hi..
>
> I had a doubt that cant we use any compiler other than mpif90 to compile
> RegCM4 code??? I wanted to use mpiifort since the system i  am using doesnot
> have mpif90 configured properly.. I tried using mpiifort but when i try to
> make regcm from it throws error as under:
>
> make[1]: execvp: svnversion: Permission denied
> make[1]: Entering directory `/scratch1/climate-iitd/RegCM4/RegCM-4.0/Main'
> ifort  -DMPP1   -c -o mod_dynparam.o ../Config/mod_dynparam.F90
> ../Config/mod_dynparam.F90(503): error #7002: Error in opening the compiled
> module file.  Check INCLUDE paths.   [MPI]
>        use mpi
> ------------^
> ../Config/mod_dynparam.F90(508): error #6404: This name does not have a
> type, and must have an explicit type.   [MPI_COMM_WORLD]
> make[1]: Leaving directory `/scratch1/climate-iitd/RegCM4/RegCM-4.0/Main'
> make: *** [regcm] Error 2
> Please help me out with this. and we can use mpiifort then where all do we
> need to mention the compiler as mpiifort??
>
> thanks..
> regards,
> Deepika Vaddi
>



More information about the RegCNET mailing list