New answers tagged

2 votes

Parallelize two independent loops

The first reason this doesn't work is that the variables sum and sum2 are not synchronized with the parallel subkernels. You can modify the corresponding variables in the subkernels all day long and ...
user avatar
  • 486
5 votes

Parallelize two independent loops

Here's how I would do it using ParallelMap: First, make your two evaluations truly independent by wrapping Block around them ...
user avatar
  • 25.1k
3 votes

Parallelize two independent loops

The answer given by @user293787 is correct. However, one needs only two kernels for the code to work. If one has four kernels like my pc, ...
user avatar
  • 515
7 votes
Accepted

Parallelize two independent loops

Here is one solution. It uses $KernelID which, if you one has two kernels, will typically have values 1 on one kernel, ...
user avatar
  • 4,503
6 votes

Solving hyperbolic equation with parallelization in python by elucidating Mathematica algorithm

Not fast at all, but it seems to work. Just posting this for fun. This simply increases x and lets y oscillate about the graph ...
user avatar
5 votes
Accepted

Solving hyperbolic equation with parallelization in python by elucidating Mathematica algorithm

Here is a solution that seems to be as fast or sometimes faster than the Solve method. It will not be useful for 4000 bit numbers, but the implementation is ...
user avatar
  • 4,503
5 votes
Accepted

Optimal parallelization on Apple Silicon

There are several reasons why parallelization does not scale. Memory bandwidth bottlenecks are one of them (see my comment above). However, I don't think that this problem is really memory bound. I ...
user avatar

Top 50 recent answers are included