New in Wolfram
Mathematica
8: Compiler Performance Enhancements
◄
previous
|
next
►
Software Development
Multicore Operation
Multicore computations with compiled functions can utilize all the cores of a machine from a single
Mathematica
kernel.
In[1]:=
X
cP = Compile[{{x}}, Module[{sum = 1.0, inc = 1.0}, Do[inc = inc*x/i; sum = sum + inc, {i, 10000}]; sum], RuntimeAttributes -> {Listable}, Parallelization -> True]; arg = Range[ -200., 200, 0.002]; Print[ByteCount[arg]]; cP[arg]; // AbsoluteTiming
Out[1]=