-
Notifications
You must be signed in to change notification settings - Fork 53
Home
Welcome to the ParallelIO wiki!
We are working on improving the cmake build process and simplifying theses instructions, but for now here is how to build pio2 on a cray system:
#First get a copy of the source code from git:
git clone https://github.com/PARALLELIO/ParallelIO.git pio
cd pio
export PIOSRC=`pwd`
git clone https://github.com/PARALLELIO/genf90.git bin
cd bin
git clone https://github.com/CESM-Development/CMake_Fortran_utils.git cmake
cd $SCRATCH
mkdir piobld
cd piobld
#!/bin/sh
module rm PrgEnv-cray cce
module load PrgEnv-pgi
module load cray-netcdf-hdf5parallel/4.3.2
module load cray-parallel-netcdf/1.6.0
module load cmake
module list
rm -f CMakeCache.txt
CC=cc FC=ftn CXX=CC cmake -DPIO_BUILD_TESTS=1 -DPIO_BUILD_TIMING=1 -DCMAKE_SYSTEM_NAME=Catamount -DNETCDF_DIR=$NETCDF_DIR -DPNETCDF_DIR=$PARALLEL_NETCDF_DIR -DCMAKE_C_FLAGS="-O2 -DHAVE_NANOTIME -DBIT64 -DHAVE_VPRINTF -DHAVE_BACKTRACE -DHAVE_SLASHPROC -DHAVE_COMM_F2C -DHAVE_TIMES -DHAVE_GETTIMEOFDAY" -DCMAKE_Fortran_FLAGS="-O2 -DHAVE_NANOTIME -DBIT64 -DHAVE_VPRINTF -DHAVE_BACKTRACE -DHAVE_SLASHPROC -DHAVE_COMM_F2C -DHAVE_TIMES -DHAVE_GETTIMEOFDAY" $PIOSRC
make