A containerized example application of MOF generation code found here.
- Create your GitHub personal access token, see here.
- Pull image from Github Registry
echo <personal_access_token> | docker login ghcr.io -u <github_username> --password-stdin
docker pull ghcr.io/diaspora-project/mofa-mini-app:main
docker tag ghcr.io/diaspora-project/mofa-mini-app:main mofa
- Run container to execute application
docker run --rm mofa
- Pull image from Github Registry
echo <personal_access_token> | docker login ghcr.io -u <github_username> --password-stdin
docker pull ghcr.io/diaspora-project/mofa-mini-app:gpu
docker tag ghcr.io/diaspora-project/mofa-mini-app:gpu mofa-gpu
- Run container to execute application
docker run --rm --gpus all mofa-gpu
To run on Polaris, it is recommended to follow instructions for running Apptainer on Polaris provided here.
- Load Apptainer modules
module use /soft/spack/gcc/0.6.1/install/modulefiles/Core
module load apptainer
- Build Apptainer image from Github Registry
echo <personal_access_token> | apptainer remote login -u <github_username> --password-stdin docker://ghcr.io
export APPTAINER_TMPDIR=/local/scratch # have more space available for building image
apptainer build --fakeroot --force mofa docker://ghcr.io/diaspora-project/mofa-mini-app:gpu
- Clone and cd to the MOFa code
git clone https://github.com/globus-labs/mof-generation-at-scale.git
cd mof-generation-at-scale
- Generate required input files in apptainer environment (optional, if files have already been generated)
cd input-files/zn-paddle-pillar
apptainer exec mofa /bin/bash
source activate mofa
python assemble_inputs.py
exit
cd ../../
- Run container from mof-generation-at-scale root dir to execute application
apptainer run --nv ../mofa