error out of memory
3 ビュー (過去 30 日間)
古いコメントを表示
I'm running a program on my pc (Intel i5, 8GB RAM, 2 cores processors) and it works fine with Matlab R2008a. But when I run the same program on other pc with higher spec (Intel Xeon, 16GB RAM, 8 cores processors) with Matlab R2010a, there was an error of 'OUT OF MEMORY'. What's wrong actually? Is it because of my pc, or Matlab version? What should I do? Thanks in advance
0 件のコメント
採用された回答
MathReallyWorks
2017 年 5 月 25 日
Hello Fadzli,
We know that Intel xeon is a way better than Intel i5. And moreover other specifications are better in xeon than i5 as you mentioned. So, it should not show "out of memory error". Sometimes this error depends on your program and the size of data. So check out some suggestions about this error on: Resolve "Out of Memory" Errors
その他の回答 (1 件)
Jan
2017 年 5 月 25 日
Without knowing any details about the code, it is hard to guess, what happens. The Xeon machine has 8 cores compared to 2, but only twice as much memory. Perhaps you are running some code in parallel and reserve a huge array per core?
The first thing you have to do is to analyse, which code causes the problem. You should see it in the error message and it is always a good idea to post a complete copy of it. If you find out, that this is not a programming error, the next steps are the same as usual:
- Install more RAM
- Avoid letting arrays grow iteratively (pre-allocation)
- Install more RAM
- Stop other applications
- Increase the virtual memory
- Install more RAM
- Use smaller data sizes, if possible: UINT12/32 for indices or SINGLE instead of DOUBLE
- Use inplace operations, when possible
- Install more RAM
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!