Matlab R2018b, slow issue
9 ビュー (過去 30 日間)
古いコメントを表示
Good morning,
After having used Matlab R2016a, I've finally switched to Matlab R2018b to get some new functionalities I needed, and by the way hopefully have faster execution times (as I had been told during a presentation session of the product).
Nevertheless, it occurs finally that the model I was running on Matlab 2016a takes even more time on the R2018b version... Passing from 7 min to 20min. On the trial version I tested before, I had also experienced this, but after several runs, quieckly the execution time disminished to 5min. So I thought it was dued to a progressively improving function call management... But now I got a "real" version of Matlab R2018b, it always takes long time to execute (20min), even after several runs... It's particularly disturbing because it freezes during the execution and nothing else can be done in parallel.
Would someone have a clue of why it happens and what I could try to solve that problem? Memory management and vectorization are issues I have already tried.
To give some more details, here I depict more my script: it manages several large multidimensional double arrays (400x8760x40), use array-management functions like repelem, repmat, accumarray and only basic operations (+, -, .*, ./). While it also interacts intensively with Excel with xlsread1 and xlswrite1 functions. And I'm on Windows 64bit 4 cores.
Thank you in adavnce for your help,
Have a nice day,
Eric
16 件のコメント
jose
2019 年 1 月 24 日
I have the exact same issue my version is 'a':
R2018a 64 bit win64.
After passing through all intense matrix calculations, cell2mat and other functions it remains 'wondering' freezed for a very long time compared to what those calculations took.
Calculations take 50 seconds.
It freezes for 180 seconds.
In windows task manager shows no signs of running out of cpu or memmory usages.
I need to repeat those calculations some thousand times so any help will be much apreciated.
12 cores
32 GB RAM
回答 (2 件)
Ignacio Ortiz de Landazuri
2019 年 2 月 4 日
I have the same problem, both with PC and Mac. R2018a is much slower than R2013b. I have done tests with different versions of Matlab and on both platforms. The more recent the version, the slower the test.
0 件のコメント
Mahkalan
2019 年 2 月 27 日
I have a similar issue; the code that would take 5 minute in 2017b now takes over an hour and sometimes never finishes (after waiting 5 hours ...). I found one issue which could be solved by preallocation. Without preallocation, the function became slower and slower, so much that 2 lines of code would take a good fraction of a second to execute (are we back to 1970s?)
After resolving that I ran into the cell2mat issue and now the neural net toolbox's train function is much slower than what it did in 2017b version.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!