[Q-e-developers] Compilation of QE with PGI 15

Samuel Poncé samuel.pon at gmail.com
Mon May 16 19:40:04 CEST 2016


Dear QE-developers,

The current trunk of QE does not compile with PGI 15:

cpp -P -C -traditional -D__PGI -D__FFTW3 -D__MPI -D__PARA
-D__SCALAPACK -I../include fft_types.f90 -o fft_types_tmp.f90 ; \
        mpif90 -fast -r8 -Mcache_align -D__PGI -D__FFTW3 -D__MPI
-D__PARA -D__SCALAPACK -I/home/farm2/local/fftw3_pgi1507/include/
-I../include  -c fft_types_tmp.f90 -o fft_types.oPGF90-S-0034-Syntax
error at or near / (fft_types_tmp.f90: 1)
PGF90-S-0034-Syntax error at or near identifier file (fft_types_tmp.f90: 2)
PGF90-S-0034-Syntax error at or near identifier gnu (fft_types_tmp.f90: 4)
PGF90-S-0034-Syntax error at or near identifier it (fft_types_tmp.f90: 5)

To make it compile, the following line should be changed in the make.sys
(therefore in the Makefile):

The line
CPPFLAGS       = -P -C -traditional $(DFLAGS) $(IFLAGS)

should be replace by
CPPFLAGS       = -P -traditional $(DFLAGS) $(IFLAGS) $(MANUAL_DFLAGS)

The reason is because the -C option place C comments at the beginning of
the pre-processed file and pgi cannot interpret it correctly.
The manual_dflag is important in my case because the fftw lib is not
correctly recognize and I have to add the fftw3 /include file.

With the modification, QE compiles perfectly with pgi 15.

Best,

Samuel & Martin

-- 

------------------------------------------------------------------------------------------------
    Dr. Samuel Poncé
    Department of Materials
    University of Oxford
    Parks Road
    Oxford OX1 3PH, UK

    Phone: +44 1865 612789
    email: samuel.ponce at materials.ox.ac.uk  <fabio.caruso at materials.ox.ac.uk>
    web: http://giustino.materials.ox.ac.uk/index.php/Site/SamuelPonc%e9
------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20160516/fb93506e/attachment.html>


More information about the developers mailing list