Bad version or endian-key in MATLAB parfor?

前端 未结 2 1243
终归单人心
终归单人心 2021-01-12 00:10

I am doing parallel computations with MATALB parfor. The code structure looks pretty much like

%%% assess fitness %%%
% save communication overh         


        
相关标签:
2条回答
  • 2021-01-12 00:36

    After working a while on my own similar code block, I've decided that this is actually a memory issue.

    I'm using a 6 core 4GHz CPU and 8 gigs of RAM and seen this issue (on MATLAB 2014b) when I set the worker count high, and did not have any problems with low worker counts.

    When I use 6 or more workers (which is not ideal I know), memory consumption is high and this error message pops out sporadically. Also I have seen various out of memory errors in my tests.

    I havent seen the error when I use 5 or less workers thus far, and I'm pretty sure some memory limit (possibly inside a java code block) is causing this issue by preventing some of the results' integrity (or existance)

    Hope you can resolve this issue by reducing the worker count.

    0 讨论(0)
  • 2021-01-12 00:41

    I had the same issue and it came out that Matlab 2015 is reserving all necessary memory resources for each of the loops in the parfor resulting in memory break shortage. The error message is tricky. After fine tuning the code in the loop and providing 120GB of RAM from the SSD through system setting in Pagefile in Windows 10, the parfor executed beautifully.

    0 讨论(0)
提交回复
热议问题