-
Notifications
You must be signed in to change notification settings - Fork 47
Home
Cameron Smith edited this page May 1, 2015
·
8 revisions
Create a toolchain file 'StampedePhi.cmake' with the following contents:
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER icc)
set(CMAKE_CXX_COMPILER icpc)
set(CMAKE_Fortran_COMPILER ifort)
set(CMAKE_AR /usr/bin/ar CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS -mmic CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS -mmic CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS -mmic CACHE STRING "" FORCE)
set(CMAKE_FIND_ROOT_PATH
/usr/linux-k1om-4.7/linux-k1om/usr/lib64/
/usr/linux-k1om-4.7/linux-k1om/usr/
/opt/apps/intel15/impi/5.0.2.044/mic/lib/release_mt
/opt/apps/intel15/impi/5.0.2.044/mic/lib/
/opt/apps/intel15/impi/5.0.2.044/mic/
/opt/apps/intel15/impi/5.0.2.044/mic/lib)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Then create a build directory:
mkdir buildPhi
cd buildPhi
and run the following cmake command to configure the build:
CC=icc CXX=icpc FC=ifort \
cmake \
-DCMAKE_TOOLCHAIN_FILE=../StampedePhi.cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DPHASTA_INCOMPRESSIBLE=OFF \
-DPHASTA_COMPRESSIBLE=ON \
..