mirror of https://github.com/QMCPACK/qmcpack.git
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
This commit is contained in:
parent
2b9e460794
commit
0bec29adb0
|
@ -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)
|
||||
|
Loading…
Reference in New Issue