Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
2
votes
0answers
95 views

Why can't ImageTransformation be parallelized?

I have a rather complicated code for an ImageTransformation, which would benefit from some acceleration. Since every pixel is independend of every other, I tried Parallelize, which, in a simplified ...
4
votes
2answers
247 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 ...
0
votes
1answer
43 views

Alternative for SharedVariable

I have the following code: ...
0
votes
1answer
51 views

Parallelization of function evaluations

Problem I have an expression that calculates the coefficients of a 2x2 matrix which depend on other three independent expressions, i.e, $K_{l l^\prime} = ( k_{l l^\prime}^{(1)} + k_{l l^\prime}^{(2)}...
8
votes
1answer
131 views

How to Parallelize a simple MapAt?

I have a simple map I would like to parallelize (4x speedup for my 4 cores): ...
7
votes
1answer
124 views

AbortKernels, CloseKernels may crash Mathematica

Let us start with a variant of an example in the documentation of AbortKernels. We launch four subkernels: LaunchKernels[4]; ...
12
votes
2answers
239 views

Surprising interaction of DistributeDefinition and ParallelNeeds in 11.3

Bug introduced in 11.3.0 (CASE:4039452) I believe I am seeing a new sort of behavior around some parallel functionality in Mathematica 11.3, because code that used to function properly in earlier ...
1
vote
1answer
70 views

How to catch error messages from parallel kernels

Doing something that throws out an error (warning): ParallelTable[NIntegrate[1/Sin[10 t], {t, 0, W}], {W, 0, 10, 1}] In parallel somehow limits a possiblity to ...
2
votes
1answer
90 views

Using less memory with ParallelMap when modifying random geometric graphs

I am generating a large number of graphs with RandomGraph[SpatialGraphDistribution[n,r]], and parallel mapping a function over them which adds vertices (see the ...
0
votes
1answer
132 views

Want advice on writing better code to do matrix calculation [closed]

I want to perform the computation shown in the code given below in a much faster way. I have three loops for e, i and ...
0
votes
1answer
90 views

Why does the kernel die suddenly in this script with ParallelMap?

I have the following script involving ParallelMap, but the Kernel "dies" during evaluation on a high performance computer. Also, on my MacBookPro it dies sometimes ...
1
vote
0answers
90 views

Parallel execution in $2 \times 4$ kernels

Let's say I have 8 CPUs available on a single node. I want to run two instances of the same script (from command line with wolframscript in args > out &) on that node in parallel. Is there a way ...
2
votes
0answers
30 views

Problem with autoloading packages in Parallel kernels on 11.2 [duplicate]

After migrating to a new machine (running Mathematica 11.2 on Linux), I am experience a problem with packages in the autoload directory not loading when I launch parallel kernels. The setup I use is ...
1
vote
1answer
109 views

Make ParallelTable evaluate quietly

...
3
votes
1answer
313 views

Jacobian for parallelised FindRoot with multiple variables

Michael E2 explains how to use parallel processing to speed up multiple FindRoot calculation with the same function in https://mathematica.stackexchange.com/a/...
7
votes
1answer
113 views

Association lookup in sub-kernel seems slow

While developing a parallel version of some code, I noticed that looking up an item in an association seemed much slower than in the serial version of the code. To show the effect, I created the ...
0
votes
0answers
80 views

Is it possible to parallelize reading in Mathematica?

I have a gigantic data file that needs to be processed. I am reading it in chunks using ReadList with an InputStream. In my ...
1
vote
1answer
90 views

local variables make parallel execution slow

I have read a few threads about parallel execution and I have fixed the problem with dispatch tables, but still my code is very slow. I have isolated the problem and into the following First some ...
6
votes
1answer
141 views

init.m in Autoload directory is not read by parallel kernels in M11.2

Parallel kernels are not reading the init.m files in $UserBaseDirectory/Autoload since version 11.2. The master kernel reads it ...
2
votes
1answer
98 views

ParallelTable within ParallelTable

Suppose a ParallelTable invocation parallelizes a module which in turn invokes ParallelTable. Is it possible that there will be a deadlock situation wherein the second ParallelTable invocation can't ...
9
votes
1answer
122 views

How to launch a separate Java VM on each sub-Kernel?

I have some code that process very large flat files in to separate HSQL(Standalone) databases using ParallelSubmit and JDBC for each file using the strategy in this post (19542). Lately I keep ...
1
vote
0answers
56 views

Access to a specific subkernel

Say I want to distribute a task in the following way on the available subkernels: ...
0
votes
0answers
226 views

Parallel computing issues when running a Module

I'm running a heavy simulation and try to use Parallel computing to run a Module case. I have been working on this parallel computation for more than three months, but still haven't come up with a ...
0
votes
2answers
71 views

Parallelize table construction for calculations [closed]

I'm new to Mathematica. My knowledge of parallel computing is very limited. I tried to figure out how to proceed using the documentation and have found something from online help pages. My program ...
5
votes
2answers
211 views

Making calculation of correlation dimension faster

I am trying to make my calculation faster. I was hoping, when I compiled it, it would work much faster, but in the end its even slower. I don't know if I am using ...
5
votes
1answer
201 views

Print messages of parallel kernels to console

This question shows how to print output to the console, but how about messages? For the main kernel, I know this way: ...
0
votes
0answers
56 views

Using WebUnit with ParallelTable

Is it possible to use OpenWebPage from WebUnit in ParallelTable? For example such as in: <...
0
votes
2answers
172 views

Reducing the computation time used by parallel table when finding a fixed point

I am using Intel Core(™) processor, 32 bit operating system, 4GB RAM, Windows 7. I am running the following code and it is taking hours to obtain the result. Can any one help me in improving the codes ...
1
vote
1answer
126 views

How to parallelize a table of contour plots

I have this simple code: ...
0
votes
0answers
91 views

How to calculate the symbolic inverse matrix on cluster with multiple nodes?

I'm trying next commands for Mathematica 11.2.0: ...
1
vote
0answers
99 views

Parallel matrix inversion with gridMathematica

I'm trying to test parallel symbolic matrix inversion on cluster with gridMathematica 7.0 for Linux x86 (64-bit) (February 18, 2009). I use next commands: ...
0
votes
0answers
166 views

Parallel matrix multiplication with configured kernels

I'm trying to test parallel matrix multiplication with commands: ...
2
votes
0answers
66 views

How to sync parallel kernels across multiple nodes on an HPC

I'm hoping to parallelise my Mathematica script across multiple nodes on an HPC, but I can't get it to work. My code has the following schematic form: ...
2
votes
1answer
69 views

Why `ParallelTable` doesn't work in this simple code?

The code Table[{a[i] = i^2, b[i] = a[i] + 100}, {i, 1, 4}] a[1] a[2] a[3] a[4] b[1] b[2] b[3] b[4] returns (correctly) the following output: ...
0
votes
0answers
117 views

gridMathematica: manual launching kernel on cluster node error

I have a cluster with gridMathematica installed, and the version is: Mathematica 7.0 for Linux x86 (64-bit) Command ...
1
vote
0answers
41 views

Trouble parallellising on HPC

I'm trying to carry out a parallel computation using Mathematica's inbuilt parallel functions, ParallelTable, etc. The problem is that the HPC doesn't seem to like ...
1
vote
1answer
51 views

Can operations with the CDF of random variables be parallelized?

I am trying to parallelize the computation of the CDF of a random variable (more precisely, a doubly noncentral $F$ variable) for a matrix of values. This is a MWE: ...
0
votes
0answers
110 views

Parallel computation on an HPC

This is my first time using an HPC and I am completely lost as to how to successfully launch a master kernel and a set of slave kernels. So far I have a .sh called <...
9
votes
3answers
2k views

Which processor and graphics card to use for my Mathematica license

Does my Mathematica license support processors with 8 cores? I have to choose between one of the following processors: Intel® Xeon® E5-1630 v4 Prozessor (4 cores, 3,7 GHz, 4,0 GHz Turbo) Intel® ...
1
vote
1answer
135 views

ParallelTable fail to distribute computation to local kernels and remote kernels

Recently I'm trying to process some experiment data, my PC with OS Win10 (mathematica v10.4) is not enough, so I connect to another PC with OS Ubuntu 16.04 (mathematica 11.0) by the way supported here....
1
vote
0answers
147 views

Parallelization of Monte Carlo numerical integration

I'm trying to parallelize some integral. What I do: I define integrand: ...
0
votes
0answers
244 views

Parallelizing NDSolve

I have a system of 300 coupled linear ODE's, which takes days to solve with NDSolve (i.e. but it's basically not possible to solve it since it requires >100 gigabytes of RAM). In other posts, I read ...
1
vote
1answer
241 views

ParallelDo works sometimes only

The following ParallelDo works sometimes (If I restart Mathematica, sometimes works). But, it usually does not work. Had not it worked all the time, I can be sure there is a coding error, but as it ...
0
votes
1answer
114 views

Speed up for NDSolveValue containing a coefficient of interpolate function

Could you give me some advice to speed up this code? I think especially NDSolveValue takes a lot of time. For j=1, it the NDSolveValue seems to be fast. But for j=2, I use the result of previous ...
2
votes
0answers
156 views

Parallelizing / speeding up a replacement rule over large list

I have a list of differentiated expression of the form {f[0,0,0],(f^(a,b,c))[0,0,0],...} where I have left the function as a general ...
1
vote
0answers
79 views

Finding the best way to try `Parallelize` a code

Consider a code like ...
1
vote
0answers
164 views

Keep kernels alive in parallel evaluations of several scripts

I have written a parallel script file that after initializing the kernels it puts the result of some computation in a file. I provide some external parameters to the script. I would like to run the ...
3
votes
0answers
57 views

Circumvent DistributeDefinitions

I have a code in which I create a few very large matrices with which I need to do long calculations. I have parallelised my code and, in the end, the thing that slows me the most is the time it takes ...
1
vote
1answer
68 views

Optimising matrix calculation [closed]

I was calculating the elements of a matrix like this: ...
0
votes
1answer
78 views

Large sum of 6-rank tensors

I have a question regarding the use of ParallelSum. I would like to perform a sum of the form: ...

1 2 3
4
5
14