问题
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 -> -> .Call Execution halted
Thanks.
来源:https://stackoverflow.com/questions/58081736/r-parallel-job-hangs