Le mardi 26 janvier 2016 à 12:59 -0800, jda a écrit :
> The OSes and the Julia versions are all 64-bit. Thanks for the .exe
> links, I was looking for them. Good suggestion to install the 0.4.3
> version of Julia on the mac laptop.
>
> What I found has led me to a different question. I have found that
> actually the same size matrix that before ran just fine on the mac
> laptop no longer run -- giving the OutOfMemory error now. So this
> problem seems to *not* be related to the version of Julia but rather
> the state of the system. I must say in advance that I am trying to
> push the limits -- trying to run simulations for the biggest grid
> possible for the best results. In doing so it seems that I need to
> learn much more about optimizing memory usage and possible (?) other
> aspects of how the system is setup? Any info that would help me to
> navigate this would be greatly appreciated.
It's hard to tell without seeing the code, but in general you should
avoid allocating temporary arrays by unrolling your loops and using in-
place versions of functions where possible. Of course, also make sure
that there is no type instability in your code which would trigger
unwanted memory allocations.
You could also use Float32 instead of Float64 if reduced precision
isn't an issue for your application.
Regards