From: Bill P. <pa...@ki...> - 2009-09-21 14:29:46
|
Hi Ehsan, MESA supports OpenMP parallelism. There are compiler flags for openmp; the standard default in utils/makefile_header is to enable OpenMP, but you might want to double check. For ifort, you should find: FCopenmp = -openmp -threads For gfortran, FCopenmp = -fopenmp At runtime, the openmp implementation checks an environment variable to see how many threads to use. On my dual core Mac, I set this to 2. On a qual-core server, you might set it to 4 or even 8. Depending on your shell, the command looks something like this: setenv OMP_NUM_THREADS 2 Finally, to get the most benefit, it helps to reduce the IO since it is a bottleneck for parallelism. For mesa/star, this means limiting the frequency of writing info to log files. My default is photostep = 50 profile_interval = 50 log_cnt = 5 You can of course reduce these to increase the frequency of log entries during interesting events. Hope that helps! Cheers, Bill On Sep 21, 2009, at 7:35 AM, Ehsan Moravveji wrote: > > Dear MESA users, > Hi. I'm Ehsan, and quite new to MESA. > I remember to read somewhere either in the manual, or the webpage > that it > supports parallel computing. However, I do not remember how to > activate > this option. > Anyone to help me with that? > Thanks. > > -- > Moravveji, Ehsan. > Ph.D student of Astrophysics. > Institute for Advanced Studies in Basic Sciences (IASBS). > Gavazang Road, Zanjan, Iran. P.O. Box: 45195-1159 > > Office: (+98)241-415 2212 > Fax: (+98)241-415 2104 > http://iasbs.ac.ir/students/moravveji > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > mesa-users mailing list > mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa-users |