mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-13 20:27:29 -05:00
956 B
956 B
date | draft | math | medium_enabled | medium_post_id | tags | title | |
---|---|---|---|---|---|---|---|
2022-05-03 00:52:38-04:00 | false | false | true | 1c0c98b99e8a |
|
OpenMPI on Fedora |
To use use the OpenMPI compilers (mpicc, mpic++, etc.) and mpirun on Fedora, you'll need to install the openmpi package as well as set up the envionrment paths correctly.
To install:
sudo dnf install openmpi openmpi-devel
Then to set up the environmental variables correctly so that PATH is set. You'll need to use the environment modules program installed by default on Fedora. First, you'll need to source it:
source /etc/profile.d/modules.sh
Now you can load in the OpenMPI module
module load mpi/openmpi-x86_64
Finally, with these changes you can use the compiler
tools and runner. Do note that you'll have to source
and load the OpenMPI module for every shell you open
unless you add it within $HOME/.bashrc
.