Why Matlab 2017a needs twice more time than 2014a to run the same code?

2 ビュー (過去 30 日間)
A. Wozniak
A. Wozniak 2018 年 3 月 16 日
コメント済み: Julien Volle 2019 年 7 月 19 日
Dear all,
I have a code, which in 2014a took 16 hours to run. There is a lot of parfor loops, which works smoothly. The same code, with identical data needed 30 hours to run.
Could anyone please explain me why? What can I do, to work it faster? I heard, that 2017 versions are supposed to be faster... So, what's wrong?
Thank you in advance for any clues.
  4 件のコメント
A. Wozniak
A. Wozniak 2018 年 3 月 19 日
Dear Jan, I run the part of my code in Matlab 2017a and wanted to see how the code will behave with only 2 datasets. I started it on Friday, and today, Monday morning it was still not finished. I enclose the pront screens from the profiler. The only thing which I'm guessing, is some issue with java.util.concurrent.LinkedBlockingQueue function, and then with that remoteparfor>remoteparfor.getCompleteIntervals Do you know by any chance, how to solve such a problem?
A. Wozniak
A. Wozniak 2018 年 3 月 19 日

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2018 年 3 月 16 日
I would suggest you contacting Mathworks' technical support for this. If you could provide your example data, I am sure they will be able to find out why and possibly provide a solution. I had a similar issue where it took much longer in R2015b to finish a script than in R2014b. It turned out that there is some optimization in MATLAB R2015b that inadvertently slows down a particular use case. The tech support found the root cause and the problem was resolved in R2016b.
  3 件のコメント
Patrick McConnell
Patrick McConnell 2019 年 7 月 18 日
Did you ever figure this out?
Julien Volle
Julien Volle 2019 年 7 月 19 日
No, never. They adised me to switch to the newest version of Matlab. And indeed, I didn't have this problem in the newer version.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by