Skip to content
jedwards4b edited this page Dec 16, 2015 · 2 revisions

Welcome to the ParallelIO wiki!

pio2 has a new cmake system, and is documented here. These instructions apply to pio1.x:

#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

Use the following script to configure and build

#!/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

Clone this wiki locally