physical vs. logical core allocation for Matlab in slurm

3 ビュー (過去 30 日間)
Evan
Evan 2014 年 10 月 14 日
編集済み: Evan 2014 年 10 月 17 日
I'm a user on a slurm cluster which is configured to consider each physical core to have two CPUs for allocation (via hyperthreading). Matlab generates up to one thread per physical core, so would it be appropriate for me to request two CPUs per task/parpool worker, even though I'll only be generating half that number of threads? I think that would be against the cluster policy, but it seems like it would be in my own best interest, and not wasting resources if Matlab is fully loading the cores.

回答 (1 件)

Siddharth Sundar
Siddharth Sundar 2014 年 10 月 15 日
For optimal performance, I would say that you should have one worker per physical core. Even though you have hyperthreading enabled, the number of physical cores still remains the same (one) while the number of logical cores is now two (in your case). Therefore, there would not be too much of an improvement in performance even if you were to use as many workers as the number of logical cores, because the number of physical cores still remains constant.
  1 件のコメント
Evan
Evan 2014 年 10 月 17 日
編集済み: Evan 2014 年 10 月 17 日
What I'm asking is a little different than what you're answering. Regardless of what I use the threads for (e.g. parpool workers), what I'm asking is how I should make the slurm resource request.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by