-
Notifications
You must be signed in to change notification settings - Fork 20
/
ToolChain.Cray
20 lines (16 loc) · 801 Bytes
/
ToolChain.Cray
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# this one is important
SET(CMAKE_SYSTEM_NAME CRAYXT_COMPUTE_LINUX)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER cc)
SET(CMAKE_CXX_COMPILER CC)
SET(CMAKE_CXX_FLAGS "-std=c++11 -std=c++14 -fopenmp -DNDEBUG -w -DGRAPH_GENERATOR_SEQ -O2 -DMPICH_IGNORE_CXX_SEEK" CACHE STRING "" FORCE)
SET(CMAKE_C_FLAGS "-DNDEBUG -Drestrict=__restrict__ -w -DGRAPH_GENERATOR_SEQ -O2 -DMPICH_IGNORE_CXX_SEEK" CACHE STRING "" FORCE)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /opt/cray/craype/2.5.0/bin/)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)