<div dir="ltr">Dear all,<div><br></div><div>I just wanted to indicate that there is apparently some unneeded spaces that cause compilation errors when trying to build an openmpi enabled cp2k version with the OsX ifort.</div><div>Removing those spaces solves the problem. I also join my openmpi makefile if ppl may find it useful, given that there is no <span style="color: rgb(255, 255, 255); font-family: Menlo; font-size: 11px; background-color: rgb(146, 146, 146);">Darwin-IntelMacintosh-intel.popt </span> makefile available in the standard distribution.</div><div><br></div><div>Thanks </div><div><br></div><div>Eric <br></div><div><br></div><div><p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"><br></p></div><div><p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">mpif90 -FR -c -D__HAS_NO_MPI_MOD -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTMKL -I -O2 -xHost -heap-arrays 64 ps_wavelet_kernel.f90 </p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">ps_wavelet_kernel.f90(1253): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (nd1.GE.n1,cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">--------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">ps_wavelet_kernel.f90(1254): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (nd2.GE.n2 ,cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">---------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">ps_wavelet_kernel.f90(1255): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (nd3.GE.n3/2+1 ,cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">-------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">ps_wavelet_kernel.f90(1256): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (MOD(nd3,nproc).EQ.0 ,cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">-------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">ps_wavelet_kernel.f90(1257): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (MOD(nd2,nproc).EQ.0 ,cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">-------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">compilation aborted for ps_wavelet_kernel.f90 (code 1)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">mpif90 -FR -c -D__HAS_NO_MPI_MOD -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTMKL -I -O2 -xHost -heap-arrays 64 wiener_process.f90 </p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">wiener_process.f90(131): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (ASSOCIATED(md_env),cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">-------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">wiener_process.f90(241): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (ASSOCIATED(distribution_1d),cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">----------------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">compilation aborted for wiener_process.f90 (code 1)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">mpif90 -FR -c -D__HAS_NO_MPI_MOD -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTMKL -I -O2 -xHost -heap-arrays 64 qmmm_update.f90 </p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">qmmm_update.f90(261): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (ASSOCIATED(from_local_particles),cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">----------------------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">qmmm_update.f90(262): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (ASSOCIATED(to_local_particles),cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">--------------------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">qmmm_update.f90(265): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (.NOT. ASSOCIATED(to_local_particles%local_particle_set),cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">---------------------------------------------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">qmmm_update.f90(279): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPrecondition (tot_from_nparticle_local == tot_to_nparticle_local, cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">-----------------------------------------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">qmmm_update.f90(305): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: => = . [ % (</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> CPPostcondition (found_it, cp_failure_level,routineP,error,failure)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">------------------------------------------------------------------------------^</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">compilation aborted for qmmm_update.f90 (code 1)</p><p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"><br></p><div><br></div><div><br></div></div><div><div><p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">Darwin-IntelMacintosh-intel.poptO2+mkl+fftmkl_xHost_ifort16 : </p></div></div><div><br></div><div><span style="color: rgb(255, 255, 255); font-family: Menlo; font-size: 11px; background-color: rgb(146, 146, 146);"># by default some intel compilers put temporaries on the stack</span><br></div><div>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># this might lead to segmentation faults if the stack limit is set to low</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># stack limits can be increased by sysadmins or e.g with ulimit -s 256000</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># furthermore new ifort (tested to work fine with 10.0.025) compilers support the option</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># -heap-arrays 64</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># add this to the compilation flags if the other options do not work</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">OPENMPIPATH = ~/Documents/Progs-CQ/openmpi-1.10.0_bin_ifort16</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">CC = ${OPENMPIPATH}/bin/mpicc</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">CPP = cpp -xassembler-with-cpp</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">FC = ${OPENMPIPATH}/bin/mpif90 -FR</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">LD = ${OPENMPIPATH}/bin/mpif90 </p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">AR = ar -r</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">RANLIB = ranlib</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#INC_FFTW = "/usr/local/include"</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">DFLAGS = -D__HAS_NO_MPI_MOD -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTMKL</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"># -D__HAS_NO_MPI_MOD required with ifort16 + Yosemite</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#DFLAGS = -D__INTEL -D__FFTSG -D__parallel -D__BLACS -D__SCALAPACK -D__FFTMKL</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">CPPFLAGS = -traditional -C $(DFLAGS) -P -I$(INC_FFTW)</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">FCFLAGS = $(DFLAGS) -I$(INC_FFTW) -O2 -xHost -heap-arrays 64</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">LDFLAGS = $(FCFLAGS) -static-intel</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#BLAS_LIBS=-Wl,-framework -Wl,Accelerate </p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#LAPACK_LIBS=-Wl,-framework -Wl,Accelerate</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">SCALAPACKPATH = ~/Documents/Progs-CQ/scalapack-2.0.2_ifort-16.0.33+mkl</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">SCALAPACK_LIBS=${SCALAPACKPATH}/libscalapack.a</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">#FFTW3_LIB=/usr/local/lib/libfftw3.a</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">LIBS = $(FFTW3_LIB) $(SCALAPACK_LIBS) $(BLACS_LIBS) $(MKLROOT)/lib/libmkl_intel_lp64.a\</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> $(MKLROOT)/lib/libmkl_sequential.a\</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> $(MKLROOT)/lib/libmkl_core.a\</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);"> -lpthread -lm</p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146); min-height: 13px;"><br></p>
<p style="font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255); background-color: rgb(146, 146, 146);">OBJECTS_ARCHITECTURE = machine_intel.o</p></div><div><br></div><div><br></div><div><br></div></div>