Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15696 > unrolled thread
| Started by | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| First post | 2011-02-11 09:16 +0000 |
| Last post | 2011-02-11 09:16 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Bug in ParallelDo? Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-02-11 09:16 +0000
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| Date | 2011-02-11 09:16 +0000 |
| Subject | Re: Bug in ParallelDo? |
| Message-ID | <ij2uq6$7ok$1@smc.vnet.net> |
On Feb 10, 9:24 pm, Thomas M=FCnch <thomas.mue...@gmail.com> wrote:
> 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.
This isn't the cause of your problem but in version 8, you don't need
to use DistributeDefinitions. This is undocumented but tech support
told me. The reason this isn't explicitly documented is that users are
supposed to infer this from the documentation relating to a new option
called DistributedContext.
Mike
Mike
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web