Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
5
votes
0answers
82 views

Random number generation within Compile and Parallelization->True

According to this thread RandomChoice is a compilable function. I use it to generate random numbers in a compiled function with parallelization enabled. I wrote ...
5
votes
0answers
36 views

Efficient Parallelization of PermutationReplace

I am generating the orbit of a partition of a set of size $n$ under the action of the symmetric group $S_n$. PermutationReplace won't allow itself to be parallelized. Why is this ? Is it because the ...
5
votes
0answers
343 views

Can't Launch Kernels, Updating from Wolfram Research Server

So, I'm running Mathematica on an HPC cluster using the math module command line interface. I'm trying to figure out some problems with attempting to parallelize my ...
5
votes
0answers
45 views

Random Number Generation on Parallel Cores [duplicate]

So, I've noticed an odd trend in some of my Mathematica results recently- I'm running large Monte Carlo simulations on a system that involves running several jobs independently, each on a different ...
5
votes
0answers
202 views

ParallelTable slow down, Region functions

I am experiencing speed issues with ParallelTable. There are a few related problems on SX posted here and here, but no resolution. The various respondents to those ...
5
votes
0answers
82 views

The change of precision doesn't work in ParallelDo. Is it a bug in Parallel?

Cross-post: http://zhidao.baidu.com/question/2075301703219376588.html Input: ...
5
votes
0answers
390 views

Mathematica + RasPi + Parallela = Kaboom?

Is it possible to use the Parallela computing platform to enhance Mathematica computing on a Raspberry Pi? It's not at all clear to me how to interface the two boards (here it says it's done via ...
5
votes
0answers
520 views

Death of parallel sub-kernels

EDIT : Finally, the new Mathematica 10.0 seems to fix it. I have a little parallelization problem. I wrote a code to generate a quasicrystal by dynamical generation. Here the code: ...
5
votes
0answers
207 views

Raster with ColorFunction is blank when Dynamic Updating is disabled

UPDATE Today I was having these WaveletScalogram problems again. I think this is ultimately some kind of interaction issue with Dynamic. I have narrowed it down to ...
4
votes
3answers
948 views

How can I suppress Print in parallel evaluation?

When using a function that includes Print statements, one can suppress the output by ...
4
votes
2answers
448 views

Why does ParallelDo return wrong number of results

I am testing out some optimization algorithms. I have written the code with a Do loop inside a Do loop. The inner loop is the algorithm itself and the order the steps are executed is very important. ...
4
votes
2answers
1k views

Limit the number of processors used by ParallelTable?

By default, ParallelTable will use all the processors available in a PC. Is there a way to set a limit to the number of processors used by ...
4
votes
1answer
691 views

Errors when using ParallelTable inside a package

I'm developing a package that contains a function that requires evaluation of an expensive Table, so I use ParallelTable instead....
4
votes
2answers
233 views

Parallelize function evaluation with different parameters

How do you run the same function multiple times and at the same time, but with different parameters? I have had a look at ParallelEvaluate[] but it is meant to run ...
4
votes
2answers
602 views

Assignments in ParallelDo when using indexed variables

For convenience I use an indexed variables syntax to hold results of long computations for different integer parameters: ...
4
votes
2answers
593 views

How to use multicore in this case?

Say I have something like this: myfun[dataA,X1,Y1,Z1,W1]; myfun[dataB,X2,Y2,Z2]; myfun[dataC,X3,Y3,Z3]; (* with many more of the same *) Each would take about 5 ...
4
votes
2answers
81 views

Shadowing of symbols with ParallelEvaluate and packages

I'm new to Mathematica's parallel evaluation and can't really figure out how to properly use packages on parallel kernels: I get ::shdw messages complaining about ...
4
votes
2answers
311 views

Elegant way to partition list to be faster than `ParallelTable` (using `ParallelSubmit`), or some alternative?

Suppose you have a function fun[x_] := (Pause[.05*x]; x^2); of which you know that its evaluation time increases with its argument - in this case obviously ...
4
votes
1answer
236 views

How to further accelerate arithmetic with Fermat Pseudoprime and Fibonacci number

I've been working on this all night, and I have made this go pretty fast, compared to my first iteration of the program, but now I'm out of ideas. I'm trying to write a program to test (by good old ...
4
votes
1answer
736 views

Why can't Mathematica parallelize this?

The following code makes mathematica print "ParallelTable::nopar1: [...] cannot be parallelized; proceeding with sequential evaluation." ...
4
votes
1answer
479 views

ParallelTable and Precision

I'm using ParallelTable[] to calculate a function over a range of my parameters , ($\omega,\ell$). This seems to be working well (in terms of speed increase) except ...
4
votes
1answer
595 views

Fast evaluation of a function in many points

I need to feed to an external program a number of points (in Complex128 format) generated from the numerical evaluation of some function, e.g. $e^{i \vec{k}\cdot\...
4
votes
1answer
213 views

ParallelEvaluate: Evaluation Rules and Increment

I'm trying to understand how ParallelEvaluate works, considering the two following snippets: ...
4
votes
1answer
513 views

Parallelization does not use all cores fully

On a new laptop with a 6-core i7-8850H in Mma11.3, I'd like to use its full capabilities. Unicore code ...
4
votes
2answers
637 views

Finite Element Parallel NDSolve

How can "MeshElementBlocks" be used with NDSolve to run a parallel kernel evaluation of a Finite Element problem? ...
4
votes
2answers
308 views

Mysterious behaviour of ParallelTable

This question is related to Export bug in combination with ParallelTable?. The following code shows an even stranger bug than in the upper question. The y-axis should always be logarithmic, but in ...
4
votes
2answers
412 views

How to share numbered variables between kernels

Supose I have two variables v[1] and v[2]. I used: SetSharedVariable[{v[1], v[2]}] Then, ...
4
votes
1answer
236 views

Parallelization of the stochastic Euler scheme

I wrote a simulation to approximate the law of a stochastic differential equation via a Monte Carlo method using the stochastic Euler scheme. Then I thought, it would be a good idea to speed up ...
4
votes
1answer
652 views

using interpolation functions in ParallelMap

Edit I am editing the question to give a simple workable example. It is at the bottom under the heading Example. The original question is now headed withe Background. Background I am trying to ...
4
votes
1answer
194 views

NDSolve`Iterate with shared variables

I'm trying to parallelize a set of NDSolves that share a few variables. Here is a short working example: ...
4
votes
1answer
172 views

When using Java objects through JLink, how can I multitask the objects?

I use Mathematica 11.0.1 on Windows 10 and have a Java class which acts as a 'facade' for a headless browser (PhantomJS). In Mathematica I instantiate the class through JLink as follows: ...
4
votes
1answer
90 views

Programmatically access the data from the Parallel Kernel Status window

I want to show the parallel kernel status within a notebook, and not in the separate Parallel Kernel Status window. How can I programmatically access the Performance Measurements data shown in the ...
4
votes
2answers
415 views

Easy way to close all Mathematica kernels?

When developing functionalities with several parallel kernels, when a bug happens, I often have to manually close all parallel kernels (using the Task Manager in Windows) in order to start again from ...
4
votes
1answer
84 views

InstallJava on a parallel kernel while debugging in Wolfram Workbench

Here's my problem. I need to create a link between a client that is a parallel Wolfram kernel and a server through a Java API. I'm using Wolfram Workbench in debugging mode (like most of the time ...
4
votes
1answer
165 views

Eigensystem on HPC

I am submitting Mathematica jobs to an HPC. I have a large matrix that is a function of (x,y) and I am diagonalizing it for around 500 points in the plane. My initial idea was to request a node with ...
4
votes
1answer
627 views

Issue in ParallelTable after evaluating another function using NDSolve and FindRoot. What is wrong with this inverse?

I am trying to find the inverse of a function which is defined through NDSolve and NIntegrate. The question is pretty similar ...
4
votes
1answer
594 views

DistributeDefinitions doesn't work as expected when used for table iterator bounds?

I am new to parallelization in Mathematica, so this question may reflect some elementary confusion. I am attempting to parallelize a rather complicated module which, as part of its internal operation,...
4
votes
1answer
64 views

Apply ParallelMap to function f over a matrix while passing as arguments the row number and the element index

I have a matrix test = { {2.5,1.4,3.3},{4,4,4},{7,3.2,9}} and a function f that requires 2 arguments, the row number and the ...
4
votes
1answer
182 views

Mathematica not using all cores available

I am trying to run a ParallelDo loop in Mathematica, that uses NSolve to solve an equation for a number of different input ...
4
votes
1answer
260 views

The option Parallelization for Compile

When during the compilation of a function of one argument we use the option RuntimeAttributes->{Listable}, the resulting function is automatically threaded over ...
4
votes
1answer
113 views

Is Parallel Kernel Status Monitor available on Raspberry Pi?

I have used the Parallel Kernel Status Monitor documented here https://reference.wolfram.com/language/ParallelTools/tutorial/ConfiguringAndMonitoring.html on a machine running, I think, version 9 of ...
4
votes
1answer
277 views

How to simultaneously monitoring parallel computations in different Kernels?

I have a question about monitoring parallel processes. Let's suppose that I am running the following code with 5 active Kernels. ...
4
votes
1answer
747 views

Setting up parallel remote kernels

I'm having trouble setting-up a parallel remote kernel. I have correctly set-up remote kernels and can use them instead of the local kernels, by executing tunnel.sh ...
4
votes
1answer
752 views

Parallel kernel and front end

I have a piece of code which looks like this: ParallelTable[ Monitor[ Table[ <code here> ,{i,i1,i2]; ,i]; ] so basically a ...
4
votes
1answer
147 views

Remote parallel processing

(The problem has been narrowed down, and solved to a more simple one described at the end of the post beside UPDATE 3) I'm doing some numerical work that takes quite a long time to run on my computer ...
4
votes
1answer
152 views

How can I access memoized values from parallel evaluation? [duplicate]

I want to evaluate a table of functions with ParallelTable. Here is the serial code: ...
4
votes
1answer
204 views

TimeConstrained for parallel computations

The Mathematica manual states TimeConstrained takes account only of CPU time spent inside the main Mathematica kernel process; it does not include additional ...
4
votes
2answers
407 views

Using Multiple Kernels When Making Plots

I am running a notebook that makes multiple plots. I define a function and then I want to plot that function for different choices of parameters, using RegionPlot. ...
4
votes
0answers
91 views

How to do parallel computation when using LinearProgramming function?

I have a LP problem which contains 2n+3 variables with 4n+6 inequality constraints. I was trying to use Mathematica's LinearProgramming function. When n is small, like less than 30, it gives outcome ...
4
votes
0answers
104 views

How to speed up code in ParallelDo loops?

I have a piece of code that I'm trying to run in a ParallelDo over 32 kernels. Using a normal Do loop in a kernel Mathematica ...