Skip to content

Instantly share code, notes, and snippets.

@julesghub
Last active March 20, 2025 10:04
Show Gist options
  • Save julesghub/751a77074781e7480736c3683e94a37d to your computer and use it in GitHub Desktop.
Save julesghub/751a77074781e7480736c3683e94a37d to your computer and use it in GitHub Desktop.
Underworld 2.16 Bare metal install - Gadi

Guide to setting up and installing a bare metal underworld install on [email protected]

1st - Setup python venv

FOO=/some/path/in/scratch

module load petsc/3.21.3 python3/3.12.1 openmpi/4.1.7 python3-as-python swig/4.0.2 hdf5/1.12.2p
export CC='mpicc' CXX='mpicxx' F90='mpifort' F77='mpifort' LD='mpicc' LDSHARED='mpicc -shared'
python -mvenv --system-site-packages $FOO/venv/uw_env
source $FOO/venv/uw216/bin/activate

2nd install python dependencies not on gadi

pip3 install swig ninja
pip3 install --no-binary :all: --no-cache-dir --no-build-isolation mpi4py
HDF5_DIR= HDF5_LIBDIR=/apps/hdf5/1.12.2p/lib/ompi3 HDF5_INCLUDEDIR=/apps/hdf5/1.12.2p/include/ HDF5_MPI=ON HDF5_VERSION=1.12.2 pip3 install --no-binary :all: --no-cache-dir --no-build-isolation h5py

3rd install underworld 2.16.x

pip3 install  --no-cache-dir --no-build-isolation git+https://github.com/underworldcode/[email protected]

To execute ensure you load the venv in your .pbs file, ie.

source $FOO/venv/uw216/bin/activate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment