When using a function with the 'useParallel' option (e.g. fitcecoc), in local, it will start a parallel pool.
However, when doing this with the following script to submit this remotely on a cluster with MDCS with the following workflow:
c=parcluster('profile');job=createJob(c);createTask(job,@scriptUseParallel,0);submit(job)wait(job)data=fetchOutputs(job);
this can only get it to run on 1 core in the remote machine. How to get it to utilize all cores?
Best Answer