Installing packages
-
Configure condarc to use the local HPC resource channel and conda-forge.
Replace
{{ environment-path }}/.condarc
with:channel_priority: strict channels: - file:/{{ channel-path }} - conda-forge disallow: - openmpi - mpich - cuda-cudart-dev
and keep any custom configuration options you would like.
Note: The
disallow
section prevents you from accidentally installing MPI and GPU packages from conda-forge. -
Install the packages:
{{ package-manager }} install hoomd mpi4py
-
Load the module versions that match those used to build the package. For example:
module load openmpi/X.Y.Z cuda/I.J.K
-
Execute Python scripts. Use your HPC resource scheduler to request compute nodes and use the resources's MPI launcher. For example:
srun -n 8 python3 script.py
Tip: After initial installation and setup is complete, you can update packages to their latest versions with
{{package-manager}} update --all
.
Development of glotzerlab-software is led by the Glotzer Group at the University of Michigan.
Copyright © 2024 The Regents of the University of Michigan.