[Q-e-developers] ppc64 and xlc vs. gfortran

Filippo SPIGA filippo.spiga at quantum-espresso.org
Sun Oct 2 17:15:17 CEST 2016


We run out of time about this XLF vs GNU on ppc64, changes or fixes are inevitably postpomned to v6.1

On Sep 24, 2016, at 8:11 PM, Paolo Giannozzi <p.giannozzi at gmail.com> wrote:
> Currently the only occurrence of __XLF is in Modules/parser.f90:
> #if defined (__XLF)
>     ! ... with the IBM xlf compiler some combination of flags lead to
>     ! ... variables being defined as static, hence giving a conflict
>     ! ... with PURE function. We then force the variable to be AUTOMATIC
>     CHARACTER(LEN=1), AUTOMATIC             :: sep1, sep2
>     INTEGER, AUTOMATIC                      :: j
> #else
>     CHARACTER(LEN=1)                        :: sep1, sep2
>     INTEGER                                 :: j
> #endif
> So we may
> - remove the PURE statement (it is the only one in QE: are all others IMPURE?) and related #ifdef and -D__XLF
> - figure out if the xlf compiler automatically #defines some suitable variable, like e.g. __xlf_compiler
> - make the safe assumption that there is nobody on the planet using gfortran on a powerpc to run QE
> - remove only the above #ifdef, and see what happens
> 
> Any solution is fine for me as soon as it takes less time to implement it than to write this message. I prefer the first one.

--
Filippo SPIGA ~ Quantum ESPRESSO Foundation ~ http://www.quantum-espresso.org





More information about the developers mailing list