Code that uses MPI.jl does not run on cluster

Please do something. Look up hello_world MPI and copy a simple MPI program in C into your home directory.
mpicc -o hello hello.c

Ask your system admin where to find the mpicc for the system MPI
If it is seriously in /usr/bin then I suspect they are using the CentOS distribution package of OpenMPI

I am despairing here - looks like this is out of support CentOS 7 with an old GCC version
I may be wrong on all counts here, as I dont know the system

rpm -q --whatprovides /usr/bin/mpiexec will tell you the repository which provided it - assuming it isnot compiled from source

mpicc-o hello hello.c

salloc -N 2 --ntasks-per-node=1

mpirun hello

Here is the corresponding output

[swapanc.uc@login03 anik]$ rpm -q --whatprovides /usr/bin/mpiexec 
slurm-torque-22.05.9-1.el7.x86_64

And doing a whereis mpicc yields

[swapanc.uc@login03 mpi_tests]$ whereis mpicc
mpicc: /home/swapanc.uc/software/openmpi-4.1.1/bin/mpicc

I have gotten a simple Hello World MPI C program from the internet, however I am not sure if I am allowed to run these commands. We are only allowed to submit jobs using the scripts provided.

Application Script Examples

There is an example MPI-CPU Script
Cut and paste that script into your home drive. Use it as an example.

You then use ‘sbatch mpi-cpu-script.sh’

#list of modules you want to use, for example
I would advise emailing the cluster administrators and asking what the modules available are

My apologies for the extended silence. I have done the same, as of now it does look like an issue specific to the cluster configuration. I will open up a new thread when some more light is shed upon this issue.