필터 지우기
필터 지우기

Matlabpool core affinity issue

조회 수: 2 (최근 30일)
Gordon
Gordon 2014년 2월 21일
편집: Prasad Kalane 2014년 7월 12일
I'm running the parallel computing toolbox on a Windows7 machine with 6 physical cores (12 logical with hyperthreading). When I start a parpool requesting 6 workers, all 6 are set with an affinity for only CPU0, so all 6 workers end up fighting for the same core.
Has anyone seen this before or have a suggestion on how to fix it? Is it a MATLAB or Windows problem?
  댓글 수: 1
Edric Ellis
Edric Ellis 2014년 2월 24일
This is not expected - I don't see this on my Win7 machine here. Are you setting the affinity for the desktop MATLAB process?

댓글을 달려면 로그인하십시오.

답변 (1개)

Vishal_R
Vishal_R 2014년 7월 3일
편집: Vishal_R 2014년 7월 3일
When you run “parpool()” then it will create number of workers which are equal to the number of cores on your machine. The behavior which you are experiencing is very unusual.
I would suggest you to setting your number of workers in local by going Cluster profile Manager and run the “parpool()” command again.
Run this command to check how many cores MATLAB is identifying, >> feature('numCores')
When I tried to run this command on my machine, I got below mentioned output.
MATLAB detected: 6 physical cores.
MATLAB detected: 12 logical cores.
MATLAB was assigned: 12 logical cores by the OS.
MATLAB is using: 6 logical cores.
MATLAB is not using all logical cores because hyper-threading is enabled.
  댓글 수: 1
Prasad Kalane
Prasad Kalane 2014년 7월 12일
편집: Prasad Kalane 2014년 7월 12일
Edric sir is right. If one of the thread is inefficient in allocating the task to the core, then the core may exhibit some "down time", & Second thread take advantage of this "down time" to do some work.
or change Cluster profile Manager setting.
yet not then ask for MathWorks Support

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by