Message Boards Message Boards

0
|
7670 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to speed up processing with parallelism

Posted 10 years ago

I need to evaluate a function, say myfunc, a large number of times:

myfunc/@{a,b,c, ...}

Each evaluation/iteration is independent of others. How can I take advantage of parallel processing and multi-core processor capabilities in Mathematica? I am completely unfamiliar with kernels or parallel processing in Mathematica. Any suggestions will be greatly appreciated.

POSTED BY: Cuneyt Eroglu
3 Replies
Posted 10 years ago

Both suggestions sped up processing time significantly. Thank you very much!

POSTED BY: Cuneyt Eroglu

Compiling the function to the Wolfram Virtual Machine will also greatly speed up the calculation.

POSTED BY: Frank Kampas

Hello This example maps directly onto ParallelTable:

ParallelTable[myfunc@x,{x,{a,b,c,...}}]

The parallel kernels will launch automatically.

POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract