- The given output indicates that the OS or the scheduling software is restricting MATLAB from using all available cores on the machine. MATLAB cannot control this behavior. However, you might be able to remove any restrictions by updating your environment (docker/ cluster/ scheduler) settings that are restricting the number of cores allocated to a process.
- If the 'Processes' profile was updated to use NumWorkers = 64 on this machine and parpool was then called Parallel Computing Toolbox would start 64 workers but they would be restricted to just the resources the OS has assigned. This would likely lead to resource contention. *
What happens if I create a parpool with more workers than the number of cores the OS has assigned me?
조회 수: 10 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2024년 10월 29일
편집: MathWorks Support Team
2024년 12월 6일 11:26
I requested a machine from our internal cluster requesting for a interactive session on a machine with 64 cores. After my job got processed, I received the requested session. I then opened a VNC connection to this session through which I could then start MATLAB.
Problem:
When I execute the following command on my MATLAB Command Window, I see that MATLAB is restricted to only use 16 cores instead of the 64 I expected:
maxNumCompThreads()
ans = 16
Questions:
- Is there a way to force MATLAB to use all the available cores on the machine?
- What happens if I call parpool('Processes',64) inside this MATLAB? Does the restriction apply to those workers as well?
채택된 답변
MathWorks Support Team
2024년 12월 6일 0:00
편집: MathWorks Support Team
2024년 12월 6일 11:26
*One exception to this situation is on high core count Windows machines with > 64 cores where an OS restriction may indicate the presence of "processor groups". In this will not limit the ability to start process parpools larger than 64 workers and the NumWorkers in the 'Processes' profile can be safely adjusted using these steps.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!