Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2935
| From | Chris Chiasson <chris.chiasson@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | ParallelMap evaluation leak |
| Date | 2011-06-04 10:21 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <isd0ur$1p9$1@smc.vnet.net> (permalink) |
In[1]:= Map[f, Unevaluated@Times[7, 8]]
ParallelMap[f, Unevaluated@Times[7, 8]]
Attributes@Map
Attributes@ParallelMap
$Version
Out[1]= f[7] f[8]
During evaluation of In[1]:= ParallelCombine::nopar1:
Function[Parallel`Combine`Private`e$,f/
@Unevaluated[Parallel`Combine`Private`e$]][56] cannot be parallelized;
proceeding with sequential evaluation. >>
Out[2]= 56
Out[3]= {Protected}
Out[4]= {HoldRest, Protected}
Out[5]= "8.0 for Microsoft Windows (32-bit) (November 7, 2010)"
I would expect the result in both cases to be f[7]*f[8] instead of 56,
regardless of the HoldRest attribute.
Do you agree?
--
http://chris.chiasson.name
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
ParallelMap evaluation leak Chris Chiasson <chris.chiasson@gmail.com> - 2011-06-04 10:21 +0000
csiph-web