From 0bec29adb0af742b8930987b740de6678c85d15e Mon Sep 17 00:00:00 2001 From: Jeongnim Kim Date: Tue, 6 Sep 2011 18:12:32 +0000 Subject: [PATCH] Toolchain file for NCSA forge/iforge using Intel MPI. git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@5356 e5b18d87-469d-4833-9cc0-8cdfa06e9491 --- config/ForgeIntelMPI.cmake | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 config/ForgeIntelMPI.cmake diff --git a/config/ForgeIntelMPI.cmake b/config/ForgeIntelMPI.cmake new file mode 100644 index 000000000..82a2acf5f --- /dev/null +++ b/config/ForgeIntelMPI.cmake @@ -0,0 +1,51 @@ +SET(CMAKE_SYSTEM_PROCESSOR "i7") + +#-------------------------------------------------------------------------- +# setting compilers, compiler options and MKL_HOME +#-------------------------------------------------------------------------- +set(CMAKE_CXX_COMPILER mpiicpc) +set(CMAKE_C_COMPILER icc) +set(GNU_OPTS "-DADD_ -DINLINE_ALL=inline") + +#set(INTEL_OPTS "-g -unroll -ansi-alias -O3 -ip -openmp -opt-prefetch -ftz -xSSE4.2") +set(INTEL_OPTS "-g -unroll -O3 -ip -openmp -opt-prefetch -ftz -xSSE4.2") +set(CMAKE_CXX_FLAGS "$ENV{CXX_FLAGS} ${GNU_OPTS} ${INTEL_OPTS} -restrict -Wno-deprecated ")# -cxx=icpc") +set(CMAKE_C_FLAGS "$ENV{CC_FLAGS} ${INTEL_OPTS} -std=c99 -restrict -Wno-deprecated") + +SET(CMAKE_Fortran_FLAGS "${INTEL_OPTS}") +SET(CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS}) + +#-------------------------------------------------------------------------- +# path where the libraries are located +# boost,hdf,szip,libxml2,fftw,essl +#-------------------------------------------------------------------------- +set(CMAKE_FIND_ROOT_PATH +/ui/ncsa/jnkim/share/intel-12/einsline +/ui/ncsa/jnkim/share/intel-12/fftw-3.3 +/usr/local/hdf/hdf5/v187 +) + +#-------------------------------------------------------------------------- +# below is common for INTEL compilers and MKL library +#-------------------------------------------------------------------------- +set(ENABLE_OPENMP 1) +set(HAVE_MPI 1) +set(HAVE_SSE 1) +set(HAVE_SSE2 1) +set(HAVE_SSE3 1) +set(HAVE_SSSE3 1) +set(USE_PREFETCH 1) +set(PREFETCH_AHEAD 10) +set(HAVE_MKL 1) +set(HAVE_MKL_VML 1) + +include_directories(/usr/local/intel/mkl/include) +link_libraries(-L/usr/local/intel/mkl/lib/intel64 -mkl=sequential) + +INCLUDE(Platform/UnixPaths) + +SET(CMAKE_CXX_LINK_SHARED_LIBRARY) +SET(CMAKE_CXX_LINK_MODULE_LIBRARY) +SET(CMAKE_C_LINK_SHARED_LIBRARY) +SET(CMAKE_C_LINK_MODULE_LIBRARY) +