Hi,
I'm trying to compile Gauss release on our local machine (tachyon2), but I'm receiving errors like this :
Checking status of thorn MPI ~/Cactus/configs/test/config-data/cctk_Config.h(397): catastrophic error: #error directive: "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list" # error "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list"
and many errors similar to it.
Possibly I need some changes to my optionlist (as suggested by the error). Any ideas which options need to be set in order to make a successful compile?
My current option file looks something like this :
############################################ CPP = cpp FPP = cpp
CC = /applic/compilers/intel/11.1/cce/bin/icc CXX = /applic/compilers/intel/11.1/cce/bin/icpc F77 = /applic/compilers/intel/11.1/fce/bin/ifort F90 = /applic/compilers/intel/11.1/fce/bin/ifort
CPPFLAGS = -openmp -DMPICH_IGNORE_CXX_SEEK FPPFLAGS = -traditional -D_OPENMP
CFLAGS = -openmp -g -traceback -debug all -align -std=gnu99 -ansi_alias -U__STRICT_ANSI__ CXXFLAGS = -openmp -g -traceback -debug all -align -restrict F77FLAGS = -openmp -g -traceback -debug all -align -pad -w95 -cm F90FLAGS = -openmp -g -traceback -debug all -align -pad -w95 -cm LDFLAGS = -Wl,-rpath,/applic/compilers/intel/11.1/mkl/lib/em64t -Wl,-rpath,/applic/compilers/intel/11.1/mpi/mvapich2/1.4/lib -Wl,-rpath,/applic/compilers/intel/11.1/cce/lib -Wl,-rpath,/applic/compilers/intel/11.1/fce/lib -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.1.2
LIBDIRS = /usr/X11R6/lib64 /applic/compilers/intel/11.1/cce/lib /applic/compilers/intel/11.1/fce/lib
C_LINE_DIRECTIVES = yes F_LINE_DIRECTIVES = yes
DEBUG = no CPP_DEBUG_FLAGS = -DCARPET_DEBUG FPP_DEBUG_FLAGS = -DCARPET_DEBUG C_DEBUG_FLAGS = -O0 # -check-uninit CXX_DEBUG_FLAGS = -O0 # -check-uninit F77_DEBUG_FLAGS = -O0 -check bounds -check format # -check all F90_DEBUG_FLAGS = -O0 -check bounds -check format # -check all
OPTIMISE = yes CPP_OPTIMISE_FLAGS = -DCARPET_OPTIMISE -DNDEBUG FPP_OPTIMISE_FLAGS = -DCARPET_OPTIMISE -DNDEBUG C_OPTIMISE_FLAGS = -O2 CXX_OPTIMISE_FLAGS = -O2 F77_OPTIMISE_FLAGS = -O2 F90_OPTIMISE_FLAGS = -O2
PROFILE = no C_PROFILE_FLAGS = -pg CXX_PROFILE_FLAGS = -pg F77_PROFILE_FLAGS = -pg F90_PROFILE_FLAGS = -pg
WARN = yes
BLAS_DIR = /applic/compilers/intel/11.1/mkl/lib/em64t BLAS_LIBS = mkl_solver_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core iomp5 guide pthread
HDF5_DIR = /home01/[user]/local/hdf5-1.8.11
LAPACK = yes LAPACK_DIR = /applic/compilers/intel/11.1/mkl/lib/em64t LAPACK_LIBS = mkl_solver_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core iomp5 guide pthread
MPI_DIR = /applic/compilers/intel/11.1/mpi/mvapich2/1.4 MPI_LIBS = mpich ibverbs ibumad rdmacm rt
PTHREADS = yes
############################################
Any advices are much appreciated.
Cheers, Jakob
On Sat, Jun 15, 2013 at 02:05:12PM +0900, Jakob Hansen wrote:
Checking status of thorn MPI ~/Cactus/configs/test/config-data/cctk_Config.h(397): catastrophic error: #error directive: "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list" # error "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list"
Hi Jakob
This message is a bit misleading, and we think about changing it. For now, adding "-DCCTK_DISABLE_OMP_COLLAPSE" to both CCPFLAGS and FPPFLAGS should do the trick (or to use newer Intel compilers if you can).
Frank
Thanks Frank,
Yes, adding "-DCCTK_DISABLE_OMP_COLLAPSE" did the trick (unfortunately, as far as I can see, I don't have access to newer compiler other than intel 11.1 on our system).
Unfortunately, that did not bring me very far, next I'm getting a new series of compilation errors, along the lines of this :
~/Cactus/configs/parboil/config-data/cctk_Config.h(220): warning #2011: predefined meaning of "_Pragma" discarded # define _Pragma(x) ^
~/Cactus/arrangements/CactusBase/CoordBase/src/Domain.c(410): error: expected an expression for (int d=0; d<2*dim; ++d) { ^ ~/Cactus/arrangements/CactusBase/CoordBase/src/Domain.c(410): error: identifier "d" is undefined for (int d=0; d<2*dim; ++d) { ^ ~/Cactus/arrangements/CactusBase/CoordBase/src/Domain.c(455): error: expected an expression for (int d=0; d<2*dim; ++d) { ^
Etc. etc. ..... Any suggestions?
Thanks, Jakob
2013/6/15 Frank Loeffler knarf@cct.lsu.edu
On Sat, Jun 15, 2013 at 02:05:12PM +0900, Jakob Hansen wrote:
Checking status of thorn MPI ~/Cactus/configs/test/config-data/cctk_Config.h(397): catastrophic error: #error directive: "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list" # error "OpenMP collapse directive disabled for C, but enabled for Fortran -- likely an error in the option list"
Hi Jakob
This message is a bit misleading, and we think about changing it. For now, adding "-DCCTK_DISABLE_OMP_COLLAPSE" to both CCPFLAGS and FPPFLAGS should do the trick (or to use newer Intel compilers if you can).
Frank
Users mailing list Users@einsteintoolkit.org http://lists.einsteintoolkit.org/mailman/listinfo/users
Hello Jakob,
~/Cactus/configs/parboil/config-data/cctk_Config.h(220): warning #2011: predefined meaning of "_Pragma" discarded # define _Pragma(x) ^
...
~/Cactus/arrangements/CactusBase/CoordBase/src/Domain.c(455): error: expected an expression for (int d=0; d<2*dim; ++d) { ^
These sound as if you are not using C99 but C89. For the intel compiler you will have to add
-std=c99 -ansi_alias -U__STRICT_ANSI__
to CFLAGS. You can use the file simfactory/mdb/optionslists/queenbee-mvapich2.cfg as a template for your own option list. It also uses the intel 11 compiler.
Yours, Roland
users@lists.einsteintoolkit.org