<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Filippo,<br>
<br>
perhaps we should be a bit more precise. The issue is not directly
the PGI compiler, it is with the gcc C preprocessor. Only because
the PGI compiler cannot do the preprocessing itself, the additional
cpp step is added. However, when called with the "-C" the gcc C
preprocessor adds a comment in C format, which then cannot be
compiled by the PGI compiler.<br>
<br>
The attached two files should clarify the issue. The file
foo_tmp.f90 is the output of preprocessing<br>
the file foo.f90 with the gcc preprocessor and the options "-C -P".
Note that the option "-C" should retain the<br>
comments, but (at least with gcc) the comments are retained even
without the "-C" option.<br>
<br>
Cheers,<br>
Martin & Samuel<br>
<br>
<div class="moz-cite-prefix">On 16/05/16 18:56, Filippo SPIGA wrote:<br>
</div>
<blockquote
cite="mid:2407402F-0867-4ED8-9A83-D40B962210DD@quantum-espresso.org"
type="cite">Hello Samuel,
<div class=""><br class="">
</div>
<div class="">which PGI 15 exactly? I have 7 minor versions of PGI
15 installed in the HPC cluster here in Cambridge. I've just run
latest SVN (12411) using PGI 16.4 and it works without any
change in the make.sys. Let me know the exact PGI version, I
want to try replicate the issue.</div>
<div class=""><br class="">
</div>
<div class=""><font class="" face="Andale Mono">$ pgfortran
--version<br class="">
<br class="">
pgfortran 16.4-0 64-bit target on x86-64 Linux -tp sandybridge<br
class="">
The Portland Group - PGI Compilers and Tools<br class="">
Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.</font></div>
<div class=""><font class="" face="Andale Mono"><br class="">
$ ldd bin/pw.x<br class="">
linux-vdso.so.1 => (0x00007fff5e4c5000)<br
class="">
libmkl_intel_lp64.so =>
/usr/local/Cluster-Apps/intel/mkl/11.3.3.210/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_intel_lp64.so (0x00007f0be29df000)<br
class="">
libmkl_core.so =>
/usr/local/Cluster-Apps/intel/mkl/11.3.3.210/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_core.so
(0x00007f0be0fce000)<br class="">
libmkl_pgi_thread.so =>
/usr/local/Cluster-Apps/intel/mkl/11.3.3.210/compilers_and_libraries_2016.3.210/linux/mkl/lib/intel64/libmkl_pgi_thread.so (0x00007f0bdfc10000)<br
class="">
libmpi_usempif08.so.0 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libmpi_usempif08.so.0
(0x00007f0bdf9b1000)<br class="">
libmpi_usempi_ignore_tkr.so.0 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libmpi_usempi_ignore_tkr.so.0
(0x00007f0bdf7aa000)<br class="">
libmpi_mpifh.so.2 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libmpi_mpifh.so.2
(0x00007f0bdf549000)<br class="">
libmpi.so.1 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libmpi.so.1
(0x00007f0bdf212000)<br class="">
libpgf90rtl.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgf90rtl.so
(0x00007f0bdefec000)<br class="">
libpgf90.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgf90.so
(0x00007f0bdea3d000)<br class="">
libpgf90_rpm1.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgf90_rpm1.so
(0x00007f0bde83a000)<br class="">
libpgf902.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgf902.so
(0x00007f0bde627000)<br class="">
libpgftnrtl.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgftnrtl.so
(0x00007f0bde3f2000)<br class="">
libpgmp.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgmp.so
(0x00007f0bde171000)<br class="">
libnuma.so.1 => /usr/lib64/libnuma.so.1
(0x00007f0bddf36000)<br class="">
libpthread.so.0 => /lib64/libpthread.so.0
(0x00007f0bddd19000)<br class="">
libpgc.so =>
/usr/local/Cluster-Apps/pgi/linux86-64/16.4/lib/libpgc.so
(0x00007f0bdda90000)<br class="">
librt.so.1 => /lib64/librt.so.1
(0x00007f0bdd888000)<br class="">
libm.so.6 => /lib64/libm.so.6 (0x00007f0bdd604000)<br
class="">
libc.so.6 => /lib64/libc.so.6 (0x00007f0bdd26f000)<br
class="">
libdl.so.2 => /lib64/libdl.so.2
(0x00007f0bdd06b000)<br class="">
libopen-rte.so.7 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libopen-rte.so.7
(0x00007f0bdcddb000)<br class="">
libopen-pal.so.6 =>
/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib/libopen-pal.so.6
(0x00007f0bdcaeb000)<br class="">
libpciaccess.so.0 => /usr/lib64/libpciaccess.so.0
(0x00007f0bdc8e2000)<br class="">
libutil.so.1 => /lib64/libutil.so.1
(0x00007f0bdc6de000)<br class="">
/lib64/ld-linux-x86-64.so.2 (0x00007f0be34f1000)</font></div>
<div class=""><font class="" face="Andale Mono"><br class="">
$ mpif90 -show<br class="">
pgfortran -I/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/include
-I/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib -Wl,-rpath
-Wl,/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib
-Wl,--enable-new-dtags
-L/usr/local/Cluster-Apps/openmpi/pgi/1.8.8/lib
-lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi</font></div>
<div class=""><font class="" face="Andale Mono"><br class="">
</font></div>
<div class=""><font class="" face="Andale Mono">$ cat make.sys |
grep "</font><span style="font-family: 'Andale Mono';"
class="">CPPFLAGS =</span><span style="font-family:
'Andale Mono';" class="">"</span></div>
<div class=""><font class="" face="Andale Mono">CPPFLAGS =
-P -C -traditional $(DFLAGS) $(IFLAGS)</font></div>
<div class=""><br class="">
</div>
<div class="">On May 17, 2016, at 1:40 AM, Samuel Poncé <<a
moz-do-not-send="true" href="mailto:samuel.pon@gmail.com"
class=""><a class="moz-txt-link-abbreviated" href="mailto:samuel.pon@gmail.com">samuel.pon@gmail.com</a></a>> wrote:<br class="">
<blockquote type="cite" class="">Dear QE-developers, <br
class="">
<br class="">
The current trunk of QE does not compile with PGI 15:<br
class="">
<div class="">cpp -P -C -traditional -D__PGI -D__FFTW3 -D__MPI
-D__PARA -D__SCALAPACK -I../include fft_types.f90 -o
fft_types_tmp.f90 ; \</div>
<div class=""> 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.o</div>
<br class="Apple-interchange-newline">
<div class="">PGF90-S-0034-Syntax error at or near /
(fft_types_tmp.f90: 1)</div>
<div class="">PGF90-S-0034-Syntax error at or near identifier
file (fft_types_tmp.f90: 2)</div>
<div class="">PGF90-S-0034-Syntax error at or near identifier
gnu (fft_types_tmp.f90: 4)</div>
<div class="">PGF90-S-0034-Syntax error at or near identifier
it (fft_types_tmp.f90: 5)</div>
<br class="">
To make it compile, the following line should be changed in
the make.sys (therefore in the Makefile):<br class="">
<br class="">
The line <br class="">
CPPFLAGS = -P -C -traditional $(DFLAGS) $(IFLAGS)<br
class="">
<br class="">
should be replace by<br class="">
CPPFLAGS = -P -traditional $(DFLAGS) $(IFLAGS)
$(MANUAL_DFLAGS)<br class="">
<br class="">
The reason is because the -C option place C comments at the
beginning of the pre-processed file and pgi cannot interpret
it correctly.<br class="">
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. <br class="">
<br class="">
With the modification, QE compiles perfectly with pgi 15. <br
class="">
<br class="">
Best, <br class="">
<br class="">
Samuel & Martin</blockquote>
</div>
<div class=""><br class="">
--<br class="">
Mr. Filippo SPIGA, M.Sc.<br class="">
Quantum ESPRESSO Foundation<br class="">
<a moz-do-not-send="true" href="http://www.quantum-espresso.org"
class="">http://www.quantum-espresso.org</a> ~ skype:
filippo.spiga<br class="">
<br class="">
*****<br class="">
Disclaimer: "Please note this message and any attachments are
CONFIDENTIAL and may be privileged or otherwise protected from
disclosure. The contents are not to be disclosed to anyone other
than the addressee. Unauthorized recipients are requested to
preserve this confidentiality and to advise the sender
immediately of any error in transmission."</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Q-e-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Q-e-developers@qe-forge.org">Q-e-developers@qe-forge.org</a>
<a class="moz-txt-link-freetext" href="http://qe-forge.org/mailman/listinfo/q-e-developers">http://qe-forge.org/mailman/listinfo/q-e-developers</a>
</pre>
</blockquote>
<br>
</body>
</html>