Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4127

Nested ParallelTable

From Ivan <ivan.kassal@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Nested ParallelTable
Date 2011-08-01 10:59 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j160uu$i4l$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi all,

If I run, on an eight-core machine and with Mathematica 7,
ParallelTable[Pause[1];$KernelID, {i,1,2},{j,1,2}]
I get
{{1,1},{2,2}}
And the evaluation takes 2 seconds. What I would expect to happen is
to get
{{1,2},{3,4}}
and the evaluation taking only 1 second. That would seem like the
natural results, considering that
ParallelTable[Pause[1];$KernelID, {i,1,4}]
indeed returns
{1,2,3,4}

Is there any way to get the parallelization to work on all levels of
the table, not just the top level?

Thanks!

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Nested ParallelTable Ivan <ivan.kassal@gmail.com> - 2011-08-01 10:59 +0000

csiph-web