I'm working a small project which needs using OpenMPI to make "mpicc" work. I made a file make_cmd:
#!/bin/bash
module load OpenMPI
However, after executing ./make_cmd, I was told:
mpicc: command not found
But if I just type on the command line: module load OpenMPI
, then mpicc is working.
Why is that? Thanks!