Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Bug in ParallelDo?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116310] Bug in ParallelDo?
  • From: Thomas Münch <thomas.muench at gmail.com>
  • Date: Thu, 10 Feb 2011 05:24:46 -0500 (EST)

Is this a bug in ParallelDo? The parallel Kernels do not seem to see the 
definitions propely.

LaunchKernels[]
\[ScriptCapitalD] = SmoothKernelDistribution[{1, 2, 3, 4}]
DistributeDefinitions[\[ScriptCapitalD]]
Print@"Table:"
Table[{$KernelID,RandomVariate[\[ScriptCapitalD]]}, {2}] (* This is fine *)
Print@"Do:"
Do[Print@{$KernelID,RandomVariate[\[ScriptCapitalD]]}, {2}] (* This is 
fine *)
Print@"ParallelTable:"
ParallelTable[{$KernelID,RandomVariate[\[ScriptCapitalD]]}, {2}] (* This 
is fine *)
Print@"ParallelDo:"
ParallelDo[Print@{$KernelID,RandomVariate[\[ScriptCapitalD]]}, {2}] (* 
This is NOT fine *)


This is Mathematica V8 on Windows XP, machine with 4 Cores. I have 
reported this to TechSupport.




  • Prev by Date: Re: Sorting nested lists with strings
  • Next by Date: Re: Sorting nested lists with strings
  • Previous by thread: Re: Applying function only if the output is positive
  • Next by thread: Re: Bug in ParallelDo?