Open Weiming-Hu opened 4 years ago
The steps are similar to the previous script except for the available module names on Cheyenne.
On a login node:
module purge
module load ncarenv intel ncarcompilers openmpi pnetcdf hdf5-mpi python
virtualenv -p python3 $HOME/venv
source $HOME/venv/bin/activate
# yappi was left out and not installed because it didn't work for me.
#
pip install pandas numpy pvlib progress Cython pyyaml pyinstrument line_profiler numba tqdm
# For some reason, mpi4py does not complete with pip installation. Install mpi4py manually.
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-3.0.3.tar.gz
tar -zxf mpi4py-3.0.3.tar.gz
cd mpi4py-3.0.3/
python setup.py build
python setup.py install
cd ..
rm -rf mpi4py-3.0.3.tar.gz mpi4py-3.0.3
# Install netCDF4 manually
wget https://codeload.github.com/Unidata/netcdf4-python/zip/master -O netCDF4.zip
export HDF5_DIR=$HDF5
export MPI_INCDIR=$MPI_ROOT
pip install netCDF4.zip
rm netCDF4.zip
On a compute node:
module purge
module load ncarenv intel ncarcompilers openmpi pnetcdf hdf5-mpi python
source $HOME/venv/bin/activate
mpirun python evergreen.py --nc ~/glade_scratch/AnEn/analogs.nc
The steps are similar to the previous script except for the available module names on Cheyenne.
On a login node:
module purge
module load gnu mpt pnetcdf hdf5-mpi python
virtualenv -p python3 $HOME/venv
source $HOME/venv/bin/activate
# yappi was left out and not installed because it didn't work for me.
#
pip install pandas numpy pvlib progress Cython pyyaml pyinstrument line_profiler numba tqdm
# For some reason, mpi4py does not complete with pip installation. Install mpi4py manually.
wget https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-3.0.3.tar.gz
tar -zxf mpi4py-3.0.3.tar.gz
cd mpi4py-3.0.3/
python setup.py build
python setup.py install
cd ..
rm -rf mpi4py-3.0.3.tar.gz mpi4py-3.0.3
# Install netCDF4 manually
wget https://codeload.github.com/Unidata/netcdf4-python/zip/master -O netCDF4.zip
export HDF5_DIR=$HDF5
export MPI_INCDIR=$MPI_ROOT
pip install netCDF4.zip
rm netCDF4.zip
On a compute node:
module purge
module load gnu mpt pnetcdf hdf5-mpi python
source $HOME/venv/bin/activate
mpirun python evergreen.py --nc ~/glade_scratch/AnEn/analogs.nc
XSEDE Stampede2
To prepare the
evergreen
with MPI capability on Stampede2, we need to enable several modules and buildnetCDF4
with the parallel enabled NetCDF package.On a login node, the following code prepares the environment.
On a compute node, the following code tests the environment.