How to estimate the runtime of a parfor-loop? Whats wrong with this?

조회 수: 1 (최근 30일)
Mr M.
Mr M. 2017년 12월 18일
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개)

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by