R Running foreach dopar loop on HPC MPIcluster
问题 I got access to an HPC cluster with a MPI partition. My problem is that -no matter what I try- my code (which works fine on my PC) doesn't run on the HPC cluster. The code looks like this: library(tm) library(qdap) library(snow) library(doSNOW) library(foreach) > cl<- makeCluster(30, type="MPI") > registerDoSNOW(cl) > np<-getDoParWorkers() > np > Base = "./Files1a/" > files = list.files(path=Base,pattern="\\.txt"); > > for(i in 1:length(files)){ ...some definitions and variable generation...