Search code examples
mpifedorafish

How to load MPI modules as user in Fedora 24 using fish shell


I am cannot figure out how to load MPI modules a user in Fedora.

I am using fish shell and I dont know if there will be any issues with loading a module compared to bash shell

How I am trying to load MPI modules is

lumx@localhost ~> sudo module load mpi
[sudo] password for lumx: 
sudo: module: command not found
lumx@localhost ~> 

Also is there a way to load them during start up so i wont have to worry about loading modules again.


Solution

  • I managed to solve the problem.

    I just added /usr/lib64/openmpi/bin/ to my user paths. I don't know if this is the right solution instead of loading modules.

    set -U fish_user_paths /usr/lib64/openmpi/bin/ $fish_user_paths