mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-12-23 00:42:20 +00:00
New Post
This commit is contained in:
parent
d282fedb29
commit
a8ddec1639
1 changed files with 35 additions and 0 deletions
35
content/blog/openmpi-fedora.md
Normal file
35
content/blog/openmpi-fedora.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
title: "OpenMPI on Fedora"
|
||||
date: 2022-05-03T00:52:38-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
math: false
|
||||
---
|
||||
|
||||
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:
|
||||
```bash
|
||||
sudo dnf install openmpi
|
||||
```
|
||||
|
||||
Then to set up the environmental variables correctly
|
||||
so that PATH is set. You'll need to use the
|
||||
[environment modules](https://modules.readthedocs.io/en/latest/)
|
||||
program installed by default on Fedora. First, you'll
|
||||
need to source it:
|
||||
```bash
|
||||
source /etc/profile.d/modules.sh
|
||||
```
|
||||
|
||||
Now you can load in the OpenMPI module
|
||||
```bash
|
||||
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`.
|
Loading…
Reference in a new issue