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

1 vue (au cours des 30 derniers jours)
Bart Vermeulen
Bart Vermeulen le 27 Nov 2015
Commenté : Walter Roberson le 15 Jan 2016
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 commentaires
Bart Vermeulen
Bart Vermeulen le 15 Jan 2016
Even after shutting down the parallel pool, the mex file runs much slower
Walter Roberson
Walter Roberson le 15 Jan 2016
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by