Why is a multithreaded mex function slower when I used a parallel pool?

조회 수: 1 (최근 30일)
Bart Vermeulen
Bart Vermeulen 2015년 11월 27일
댓글: Walter Roberson 2016년 1월 15일
When I run a multithreaded mex function after having used a parallel pool, my function runs a lot slower (10-20x slowdown). Also, the more threads, the slower the function becomes.
Shutting down the pool does not help.
Rebooting Matlab restores the original speed (and scalability) of the mex Function.
  댓글 수: 4
Bart Vermeulen
Bart Vermeulen 2016년 1월 15일
Even after shutting down the parallel pool, the mex file runs much slower
Walter Roberson
Walter Roberson 2016년 1월 15일
I have a vague memory that someone else might have reported something like this a few years ago, but I am not sure I could find the posting. This is something I would recommend creating a support case for.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by