Why did spmd create a pool of 12 workers on a cluster with 32 cores?
6 ビュー (過去 30 日間)
I am experiencing a problem with running Matlab code with spmd blocks on the cedar cluster on Compute Canada. I asked for 32 cores and 1 node being allocated to me. The system can detect 32 cores, but spmd can generate a pool of only 12 workers.
Can someone explain why? I am attaching both the Matlab file and the output file here.
Kojiro Saito 2021 年 7 月 16 日
In Parallel Preferences "Preferred number of workers" is set to 12 by default.
You can change this value to 100 (more than 32) in Preferences menu.
Alternatively, you can specify workers in parpool.
You can add parpool(num) before spmd blocks.