It&#39;s very system dependent right now. To parallelize fortran requires a compiler that supports it. gnu-fortran does not (outside of some experimental versions).<br><br>You need to decide early in the code how many threads you can launch and then divide your problem into that many chunks. Then it&#39;s spawn children with a set of number to crunch. With some slick params you can pin a process to a core so it won&#39;t get migrated around during system checks.<br>
<br>Or, as suggested, dump it to a gpu with cuda or opencl and let it handle the crunch.<br><br>Heh. I&#39;ve done parallel bash.<br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 11:33 AM, Jeff Hubbs <span dir="ltr">&lt;<a href="mailto:jhubbslist@att.net" target="_blank">jhubbslist@att.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My *practical* experience has a hole in it when it comes to developing software to efficiently use multiple cores in a machine.<br>

<br>
If I&#39;m writing code in the likes of C++, Python, or Fortran (acknowledging that I&#39;ve got a range of programming paradigms there) and let&#39;s say that I&#39;m subtracting two 2-D arrays of floating point numbers from one another element-wise, how is it that the operation gets blown across multiple CPU cores in an efficient way, if at all?  Bear in mind that if this is done in Fortran, it&#39;s done in a pair of nested do-loops so unless the compiler is really smart, that becomes a serial operation.<br>

______________________________<u></u>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you 
        gain at one end you lose at the other. It&#39;s like feeding a dog on his 
        own tail. It won&#39;t fatten the dog.<br>

        - Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://electjimkinney.org" target="_blank">http://electjimkinney.org</a><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
</i></i></i></i>