The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
2
votes
1answer
57 views

ParallelSubmit not working as expected

I have the following code where ParallelSubmit called on OverBar does not return the same result as non-parallel code even ...
2
votes
2answers
91 views

Parallel Evaluation of Multiple Functions and Return the First to Finish

I have two functions which calculate the same thing using different methods. Sometimes, the first method is much faster than the second method. Other times, the other way around. Just pretend this ...
1
vote
0answers
108 views

Memory use for large computation

I am running a "big" program on my 32G RAM laptop. When MMA is running, roughly there is about 28G RAM "available" to use. So I did a bit of a test. ...
0
votes
2answers
84 views

Redirecting All Prints (including those in subkernel) to file

How do I redirect all printed text to a file instead of the FrontEnd? This question was answered in Temporarily redirect the output of Print[ ] to a second file, except that this does not capture text ...
3
votes
0answers
76 views

Too many scheduled tasks (with parallelization)

I have a program that makes many http requests (gathering data from APIs), and computes on that data. Speed is a priority and using the most up to date data in the computations is a priority. ...
3
votes
3answers
216 views

ParallelDo with two loop counters

why isn't Mathematica using all the cores in the following code. ...
4
votes
1answer
63 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 ...
1
vote
1answer
75 views

Call ParallelSubmit from inside a parallel kernel

I am scheduling myFun[x] to evaluate every couple of seconds in a parallel kernel with ParallelSubmit and Parallel`Developer`QueueRun[], where it sometimes triggers ...
7
votes
1answer
118 views

Documentation example gives different answer in Mathematica 11.3 [duplicate]

I have been looking at the very first example on this page of the documentation in Mathematica 11.3 (default installation options) and I get a different result: ...
1
vote
0answers
62 views

ParallelTable[ParallelTable] vs Table[ParallelTable]: inexplicable differences & nonlinear scaling in computation time

I have something that looks a lot like the following: ...
6
votes
1answer
164 views

Are more cores at lower GHz always faster for parallel processing?

Web searches have not yielded a definitive answer to this question: I am doing Monte Carlo simulations in Mathematica using ParallelTable, etc. to speed up the computation. I have an Enterprise ...
6
votes
2answers
171 views

Average length (in words) of paragraphs in document

I try to calculate the average length (in words) of paragraphs in a document. The data look like: ...
1
vote
1answer
65 views

Parallelize a Do nested

I have a nested Do and I need to parallelize the outer Do. I replaced the Do by ...
1
vote
0answers
64 views

How can I optimize this Parallel Map Monitor's code?

I want to know how many tasks each kernel has accomplished with the monitor. My Attemption: ...
0
votes
0answers
63 views

Parallel evaluation of MATLINK

I have to use MATLINK to connect to MATLAB to run some programs. Variables can be get using MGet and assigned to a variable using ...
2
votes
0answers
62 views

ParallelDo with doubly-indexed iterators

What is the reason that ParallelDo works with singly-indexed iterators, but not doubly- or more-indexed iterators? For example, the code ...
0
votes
1answer
51 views

Using ParallelDo

Following code is the simplified example of what I am trying to do. ...
3
votes
1answer
70 views

What are the current options for running Mathematica Enterprise on a web service/cloud with many cores?

The answers to similar questions on Mathematica Stack Exchange and Wolfram Community are several years out of date. I'm doing time-intensive Monte Carlo simulations with Mathematica Enterprise (...
2
votes
1answer
172 views

Monitoring ParallelTable

Some time ago David published an implementation of a simple monitor for ParallelTable which dynamically displays current values of the iterator for all parallel ...
2
votes
0answers
86 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
231 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
41 views

Alternative for SharedVariable

I have the following code: ...
0
votes
1answer
50 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
127 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
116 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
232 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
59 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
82 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
123 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
79 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
82 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
28 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
90 views

Make ParallelTable evaluate quietly

...
3
votes
1answer
260 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
106 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
77 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
71 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
135 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
85 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
119 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
49 views

Access to a specific subkernel

Say I want to distribute a task in the following way on the available subkernels: ...
0
votes
0answers
182 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
185 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
166 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
52 views

Using WebUnit with ParallelTable

Is it possible to use OpenWebPage from WebUnit in ParallelTable? For example such as in: <...
0
votes
2answers
169 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
105 views

How to parallelize a table of contour plots

I have this simple code: ...
0
votes
0answers
81 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
87 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: ...