Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Parallelising - troubleshooting' topicStudent Support Forum > General > Archives > "Parallelising - troubleshooting"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
qm2008q
11/25/11 07:16am

According to "Parallel Computing Tools User Guide", your function g[] has to be distributed to the other kernels, otherwise they cannot perform the computation. In other words, only the master kernel know the definition of g, which is why the virtual functions run in parallel, but then go back to the master kernel to run g.

You need

DistributeDefinitions[g]

Hope this helps,
Joe

URL: ,

Subject (listing for 'Parallelising - troubleshooting')
Author Date Posted
Parallelising - troubleshooting Wade 10/06/11 06:14am
Re: Parallelising - troubleshooting qm2008q 11/25/11 07:16am
< Previous CommentHelp | Reply To Comment | Reply To Topic