WIP: Proposed Workflows
FIXME: Beispielskript fĂĽr die Verwendung von doMPI:
#!/bin/bash
#SBATCH --time=01:00:00
#SBATCH --clusters=mpp2
#SBATCH -J testjob
#SBATCH -D /home/hpc/pr28fa/a2815ah/
#SBATCH -o /home/hpc/pr28fa/a2815ah/testjob.%j.%N.out
#SBATCH --ntasks=32
#SBATCH --get-user-env
. /etc/profile
module load R
cat > testjob.R << EOF
library(Rmpi)
print(mpi.comm.rank(comm=0))
library(doMPI)
cl=startMPIcluster()
registerDoMPI(cl)
print(mpi.comm.rank(comm=0))
foreach(i=1:32) %dopar% system("hostname")
foreach(i=1:32) %dopar% mpi.comm.rank(comm=0)
closeCluster(cl)
mpi.exit()
EOF
mpirun R -f testjob.R