Compiled Standalone app with Parfor
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, my script utilizes parfor and I was wondering if there was a way to compile it into a standalone .exe such that it can be used across all types of multi core CPUs? ie if it is deployed on a 4 core comp it uses all 4 cores....it will use all 6 cores in a 6 core CPU etc?
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 7월 24일
It is possible, but not the default. See http://www.mathworks.com/matlabcentral/answers/26472-how-to-define-local-matlabpool-size-at-runtime-for-parallel-computing-toolbox-use-in-compiled-matl
(I didn't think I'd be able to find that old discussion!)
댓글 수: 1
Jason Ross
2012년 7월 24일
I believe that if you did not hard code the cluster size into the local configuration, it would do what you want. The default cluster size is one worker per core*, so if you didn't hard code that in the configuration, I'd think it would determine it.
*- When I say "core", I mean a real compute core, not a hyper-threaded one.
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!