comp.lang.ada
 help / color / mirror / Atom feed
From: Anatoly Chernyshev <achernyshev@gmail.com>
Subject: Re: Multicore problem
Date: Tue, 9 Mar 2010 10:48:34 -0800 (PST)
Date: 2010-03-09T10:48:34-08:00	[thread overview]
Message-ID: <71a2ea77-f97d-4e48-ba82-8322974f5c2b@s36g2000prh.googlegroups.com> (raw)
In-Reply-To: 4b968f0e$0$1996$4f793bc4@news.tdc.fi

> Perhaps the two tasks/cores are competing for data-cache space, and
> causing more cache misses than if a single task/core is active?
>
> How large is your 3D array, compared to the cache?

Right now it is small, 23 Mb, for the purposes of algorithm honing.
2Mb L2 cache. In perspective the array could be 4-8 Gb (not for my
current machine, of course).

> If this is the problem, you could try to divide the whole problem into
> slices so that each slice processes a part of the 3D array that *can*
> fit in the cache, but can also be processed in parallel by two
> tasks/cores. Not knowing what your processing actually does I can't say
> more about how to slice the problem.

Each task begins in the cell of its designated area of array, and then
does a Markov walk all around the place using the cell pointers.



  reply	other threads:[~2010-03-09 18:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 17:48 Multicore problem Anatoly Chernyshev
2010-03-09 18:10 ` Niklas Holsti
2010-03-09 18:48   ` Anatoly Chernyshev [this message]
2010-03-09 22:37     ` KarlNyberg
2010-03-10  0:08     ` jonathan
2010-03-10  7:19       ` Anatoly Chernyshev
2010-03-10 18:00         ` Charmed Snark
2010-03-10 19:24         ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox