Commit 6672dd6a authored by Kim, Jungwon's avatar Kim, Jungwon

adding theta.cmake

parent 207be6a1
......@@ -8,21 +8,7 @@ set(PAPYRUS_VERSION_MAJOR 1)
set(PAPYRUS_VERSION_MINOR 0)
set(PAPYRUS_VERSION_PATCH 0)
cmake_host_system_information(RESULT MACHINE QUERY HOSTNAME)
if(${MACHINE} MATCHES "summitdev")
message(STATUS "Configuration for SUMMITDEV")
include(conf/summitdev.cmake)
elseif(${MACHINE} MATCHES "cori|nid")
message(STATUS "Configuration for CORI")
include(conf/cori.cmake)
elseif(${MACHINE} MATCHES "stampede2")
message(STATUS "Configuration for STAMPEDE2")
include(conf/stampede2.cmake)
else()
message(STATUS "Configuration for DEFAULT")
include(conf/default.cmake)
endif()
include(conf/default.cmake)
include(CTest)
......
......@@ -9,7 +9,12 @@ Papyrus is a programming system that provides features for scalable, aggregate,
## Installation
To compile the code, CMake reads a user-defined configuration file stored in conf/ directory. If the target system is not OLCF's Summitdev, NERSC's Cori, nor TACC's Stampede2, then one needs first to modify the conf/default.cmake file accordingly.
You can download Papyrus from the code.ornl.gov.
$ git clone https://code.ornl.gov/eck/papyrus.git
$ cd papyrus
To compile the code, CMake reads a user-defined configuration file stored in conf/ directory. One needs first to modify the conf/default.cmake file accordingly. The sample configuration files for OLCF's Summitdev, NERSC's Cori, TACC's Stampede2, and ALCF's Theta are included in the directory.
set(CMAKE_C_COMPILER "mpicc")
set(CMAKE_CXX_COMPILER "mpic++")
......@@ -20,8 +25,6 @@ To compile the code, CMake reads a user-defined configuration file stored in con
You can build Papyrus with CMake and Make:
$ git clone https://code.ornl.gov/eck/papyrus.git
$ cd papyrus
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=<install_dir> ..
......@@ -30,6 +33,10 @@ You can build Papyrus with CMake and Make:
### Running tests
For the Cray MPI Library, an environment variable MPICH\_MAX\_THREAD\_SAFETY has to be set to multiple.
$ export MPICH_MAX_THREAD_SAFETY=multiple
The project's test suite can be run by executing:
$ make test (or use 'ctest -V' for verbose test output)
......
set(CMAKE_C_COMPILER "CC")
set(CMAKE_CXX_COMPILER "CC")
set(CMAKE_C_FLAGS "-craympich-mt")
set(CMAKE_CXX_FLAGS "-craympich-mt -std=c++11")
set(CMAKE_CXX_FLAGS "-O2 -std=c++11 -craympich-mt")
set(MPIEXEC "srun")
set(MPIEXEC_NUMPROC_FLAG "-n")
set(CMAKE_C_COMPILER "cc")
set(CMAKE_CXX_COMPILER "CC")
set(CMAKE_C_FLAGS "-craympich-mt")
set(CMAKE_CXX_FLAGS "-O2 -std=c++11 -craympich-mt")
set(MPIEXEC "aprun")
set(MPIEXEC_NUMPROC_FLAG "-n")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment