I am running the snow-test.R script as written on the site:
https://hpcf.umbc.edu/other-packages/how-to-run-r-programs-on-maya/
The script is run on a cluster using SLURM with the command:
mpirun -np 1 R CMD BATCH --no-save --no-restore snow-test.R out.dat
The R version is 3.5.1. Although the script runs and displays the
result, it hangs at the end. Thus, I need to kill the process
manually from the SLURM
queue with scancel
command.
Also, when I change the R version to 3.4.4 using the same scripts, R cannot run the script, it complains with the message:
Error in Rmpi::mpi.comm.spawn(slave = mpitask, slavearg = args, nslaves = count, :
MPI_ERR_SPAWN: could not spawn processes
Calls: makeMPIcluster -> <Anonymous> -> .Call
Execution halted
Thanks.