Unable to set NumThreads when creating a job
Afficher commentaires plus anciens
I seem to be unable to set NumThreads when creating a job:
>> sge = parcluster('sge');
>> class(sge)
'parallel.cluster.Generic'
>> sge.NumThreads
1
>> job = sge.createJob('NumThreads',4);
>> class(job)
'parallel.job.CJSIndependentJob'
>> job.NumThreads
1
I'm able to set the other job properties just fine by passing arguments to createJob(). For now, my workaround is to modify the parallel.cluster.Generic object before creating the job:
>> sge.NumThreads = 4;
>> job = sge.createJob();
>> job.NumThreads
4
Is this a bug? Or am I doing this wrong?
I am using the Parallel Computing Toolbox with MATLAB R2017a.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Third-Party Cluster Configuration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!