How to estimate the runtime of a parfor-loop? Whats wrong with this?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a MacBook Pro 2017 with 3,5 GHz Intel Core i7. As I know i7 has 4 cores. I've tried the following example script: https://www.mathworks.com/help/distcomp/parfor.html Elapsed time is 11.989581 seconds with parfor, and 20.450299 seconds with simple for. Why? I expect factor 4 (the number of cores), and not factor 2. I have to set something somewhere to use all cores?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
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!