Re: ParallelMap inefficient?
- To: mathgroup at smc.vnet.net
- Subject: [mg27306] Re: ParallelMap inefficient?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 20 Feb 2001 03:05:15 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <email@example.com> <XPIj6.5844$Rl5.firstname.lastname@example.org> <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, > Hi Jens. The ParallelMap[ ] routine is for algorithms that are "embarassingly > parallel", i.e., there is no coupling between the processes. Since the toolkit has only the master/worker model you must send the data from the master to the workers and get the results back. In the simple examples you gave, the overhead for exchanging data and data will dominate allmost everything > Therefore, if you > map N processors over a 50 element list, with a single master computer and N > slaves, an upper bound on the time might be > > time to process = 50 * T_slowest_comm_master_slave + 50/N * > T_compute_slowest_computer +/- small_fudge_factor > > When I hand code the ParallelMap[ ] functionality myself, I see this sort of > performance. When I use the function supplied with the toolbox, I see > something different. That was the point. What kind of client tasks ?? Regards Jens