Page 1 of 1

mod_itm

Posted: Mon Nov 22, 2010 3:19 pm
by faffinito
Hi all,
I was trying to compile the last gpl version of Yambo on sp6 (3.2.3 rev 696), with these configure options:

Code: Select all

        export CPP=cpp
        export CC=xlc_r
        export F77=xlf_r
        export FC=xlf95_r
        export FCFLAGS='-O2 -q64 -qstrict -qarch=pwr6 -qtune=pwr6 -qmaxmem=-1 -qautodbl=dbl4 -qsuffix=f=f -qrealsize'
        ./configure --prefix=/sp6/userinternal/cin0644a/yambo \
                --with-fftw=/cineca/prod/libraries/fftw/3.2.2/xl--10.1/lib \
                --with-netcdf-lib=/gpfs/scratch/userinternal/cin0644a/netcdf4/lib \
                --with-netcdf-include=/gpfs/scratch/userinternal/cin0644a/netcdf4/lib/include \
                --with-p2y=4.0 \
                --with-iotk=/cineca/prod/build/applications/QuantumESPRESSO/4.1/xl--10.1/BA_WORK/QuantumESPRESSO-4.1/iotk  \
                --build=powerpc-ibm \
                --enable-netcdf-LFS
And I've got several erros in the mod_itm.f compilation:

Code: Select all

"mod_itm.f", line 437.34: 1513-062 (S) Generic procedure reference can not be resolved due to incorrect actual argument attributes.
"mod_itm.f", line 471.34: 1513-062 (S) Generic procedure reference can not be resolved due to incorrect actual argument attributes.
"mod_itm.f", line 536.21: 1513-062 (S) Generic procedure reference can not be resolved due to incorrect actual argument attributes.
"mod_itm.f", line 551.21: 1513-062 (S) Generic procedure reference can not be resolved due to incorrect actual argument attributes.
"mod_itm.f", line 566.20: 1513-062 (S) Generic procedure reference can not be resolved due to incorrect actual argument attributes.
I was thinking to solve it using xlf95 instead of xlf90 but I failed ...
Any hint?

Ciao,

Fabio

Re: mod_itm

Posted: Mon Nov 22, 2010 3:36 pm
by feffeficus
So, I'm using
yambo 3.2.3 rev16

I have succesfull compilation in this way, no error.

Modules: charge these ones and *only* this:

Code: Select all

module load xl/10.1
module load netcdf/4.0.1--xl--10.1
module load fftw/3.2.2--xl--10.1
module load QuantumESPRESSO/4.1
module load lapack
export CPP=cpp
Compilers

Code: Select all

export CC=xlc_r
export F77=xlf_r
export FC=xlf90_r
export FCFLAGS='-O2 -q64 -qstrict -qarch=pwr6 -qtune=pwr6 -qmaxmem=-1 -qsuffix=f=f'
configure:

Code: Select all

./configure  
--with-fftw=/cineca/prod/libraries/fftw/3.2.2/xl--10.1/ 
--with-netcdf-lib=/cineca/prod/libraries/netcdf/4.0.1/xl--10.1/lib 
--with-netcdf-include=/cineca/prod/libraries/netcdf/4.0.1/xl--10.1/include 
--with-p2y=4.0 
--with-iotk=/cineca/prod/build/applications/QuantumESPRESSO/4.1/xl--10.1/BA_WORK/QuantumESPRESSO-4.1/iotk 
--build=powerpc-ibm --with-lapack=/cineca/prod/libraries/lapack/3.2.1/xl--10.1/lib 
--with-fftw=/cineca/prod/libraries/fftw/3.2.2/xl--10.1/lib/ 
--with-blacs=/cineca/prod/libraries/blacs/1.1/xl--10.1/lib/ 
--with-scalapack=/cineca/prod/libraries/scalapack/1.8.0/xl--10.1/lib/

Re: mod_itm

Posted: Mon Nov 22, 2010 3:49 pm
by faffinito
Yes, your combination of configure options works fine. But why mine does not?

:-)

Re: mod_itm

Posted: Mon Nov 22, 2010 3:51 pm
by feffeficus
try to compiie without netcdf
and then linking the mine.

Re: mod_itm

Posted: Mon Nov 22, 2010 5:04 pm
by Conor Hogan
Fabio,
Often errors like that appear due to a .f file being left over from a previous (or erroneous) configure. Delete the mod_itm.f file and run gmake again. You might also turn on the more verbose compilation (--enable-msgs-comps) to make sure the file is preprocessed properly. If the error is still there let me know!
Conor