A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
1
vote
0answers
71 views

Wolfram cdf player does not support parallel computing?

I tested the following. ...
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 ...
0
votes
1answer
694 views

Parallelize simple for loop

I am trying the following code: ...
2
votes
0answers
56 views

Parallelize evaluation of initialization cells

I have a notebook with about 20 initialization cells. Evaluating all of them takes a few minutes. Mathematica uses only one core for this. In my case, the cells are all independent so it should be ...
0
votes
0answers
158 views

How can I cleanly distribute definitions of system functions?

I have a package that redefines a system symbol, and I am struggling to find a clean solution that will ensure that those redefinitions will still work inside a parallelized environment. The core ...
5
votes
1answer
362 views

gridMathematica on cluster with PBS Pro

I'm running my script (say "cluster.m") on the University cluster with PBS Pro installed. The script uses simple Parallelize like this: ...
1
vote
1answer
108 views

ParallelTable Automatically kill MathKernel

At the moment I continously encounter the problem that while using ParallelTable the process kswap needs all the memory, while the four running MathKernels receive almost zero %Memory, which slows ...
7
votes
0answers
134 views

ParallelSubmit executes only on one kernel

I'm trying to use Parallesubmit to run some calculations in parallel, but it looks like all the calculations are evaluated at one kernel. Consider this example: <...
2
votes
1answer
168 views

Does ParallelTable work with Co-Processors?

I have programs which can not use CUDA (graphic cards), but can run perfectly in parallel using ParallelTable (mainly symbolic transformations). Now I wonder, ...
7
votes
1answer
278 views

Register “initialization code” to run on any newly started parallel kernel

Is it possible to register a some "initialization code" to be run on any newly started parallel kernel? This would be similar to how ParallelNeeds registers a ...
22
votes
2answers
801 views

Restarting Mathematica automatically

I run a large computation in a loop. At each cycle of the loop I produce large arrays that I save on a disk. At each cycle I would like to Quit Mathematica and ...
0
votes
0answers
49 views

How can I speed up the evaluation of my equations?

Calculation of eigenvalues and eigenvectors in dependence of the parameters ...
3
votes
1answer
74 views

Variable not available in kernel despite `DistributeDefinitions`

I am following this answer to evaluate certain cells in a separate kernel. I have created a separate kernel called K2 and have the following MWE: ...
5
votes
1answer
307 views

clear variables on parallel kernel

Short question: what is the proper way to clear a variable on a given kernel ? AND how can I ensure that the memory will indeed be freed subsequently ? Full question. Let me elaborate this question ...
1
vote
1answer
63 views

How to submit assumptions defined in master kernel to subkernels

Consider an example: ...
0
votes
0answers
25 views

FindMinimumCost Flow and its parallelization

I would like to parallelize a specific implementation of FindMinimumCostFlow but doubt this can be easily done. Nevertheless, I have tried but failed to find attempts to do so. If you know of an ...
2
votes
0answers
69 views

Why is distributing the definitions of a list of arbitrary precision numbers so slow?

For a parallel application I need to make a large list of numbers available to the parallel kernels, which I do using DistributeDefinitions. I have noticed that this is much slower when the numbers ...
2
votes
0answers
79 views

Parallelizing code, any tips?

I have access to a Linux cluster and I'm trying to use Parallelize to run the above bellow faster, but whenever I try to place ...
6
votes
1answer
120 views

UsingFrontEnd with compute kernels

I am trying to have each compute kernel in a Mathematica session evaluate a notebook with NotebookEvaluate. Here is a sketch of my code: ...
0
votes
1answer
300 views

Why can't I parallelize this code

I have a simple routine (I thought it was simple), that I cannot parallize. It goes like this ...
1
vote
2answers
245 views

parallelization sum of list

Is there a simple way to parallelize sum of list elements ? when I use: ...
5
votes
1answer
165 views

Adding a collection of neighbors to points in a list, concatenating strings, parallelization/optimizing run-time?

Before beginning, I want to note that there are some similarities with the questions Combining two lists of different dimensions into a list of all combinations of points? How can I make threading ...
10
votes
3answers
2k views

Why is ParallelTable slower than Table?

Update Following a comment of Szabolcs have changed Timing to AbsoluteTiming. The results are virtually the same. Original post I have accidentally observed the following surprising result. So, why ...
2
votes
1answer
136 views

How are function definitions distributed to parallel kernels?

For example, I define a function f. f[x_] := x^2; And when I execute ParallelTable[f[i], {i, 1, 10}] I get ...
3
votes
2answers
139 views

Dot product of lists with non-equal dimensions

I have two lists, er and ns: Dimensions@er Dimensions@ns gives: ...
6
votes
2answers
235 views

Contexts and parallelization

This question is related to my previous one here. I opened a new question because I think that the root cause is different though. BTW I use MMA 9 on a mac OS X 10.11 (El Capitan). I put here a ...
4
votes
1answer
277 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 ...
1
vote
1answer
321 views

How to distribute NIntegrate of four different integrals into four different cores

I'm not familiar at using parallel computing in Mathematica. I have a combination of an NIntegrate and Sum to evaluate a function which takes about 1 hour to run. Is there any way that I can break ...
1
vote
0answers
140 views

How to make use of multi cores on a single node of supercomputer 'Stampede'

I am using Mathematica 10.4 in GUI mode on stampede supercomputer. I am using a single node on this machine and each node has two 8 core chips. Whenever I try to parallelize my code on 16 cores(using ...
5
votes
1answer
136 views

Problems with ParallelDo

As example I have the following two image sets (10 images each, png format, 8 bit gray scale) in two different directories and want to determine the mean intensity of each image: set 1: https://drive....
1
vote
0answers
76 views

Functions, strings and ToExpression in ParallelDo

I have defined functions: ...
1
vote
0answers
60 views

Parrallelize unrelated expressions: how to solve transcendental equation by finding roots in parts of the interval simutaneously

The goal is to find all the roots of a transcendental equation. I copy a function from stackexchange: ...
1
vote
0answers
49 views

ParallelDo only output one file using $KernelID

I have some codes like this: ...
3
votes
2answers
181 views

Accelerating the construction of a ParallelTable

I wish to calculate a rather dense antisymmetric matrix quite fast based on a random distribution of points (and their radii) in the three dimensional space as follows: ...
3
votes
0answers
92 views

Wolfram math on windows using PBSPro cluster

A user wishes to use math application running on our PBSPpro cluster. Our cluster is accessible to linux users, running qsub to submit their jobs. We have math10.4 for our cluster users, with ...
2
votes
1answer
85 views

How to fill in matrices by enforcing a condition on each entry quickly?

In the process of solving a 3D time-dependent PDE, I need to fill several matrices which their sizes are quite high. These matrices are constructed based on the radii of the mesh nodes in the 3 ...
5
votes
2answers
292 views

ParallelTable vs. Table: Parallel gives NMinimize:nnum error

I have run into an issue where I am getting nnum errors when I use ParallelTable, which I do not get when I use Table (and even ...
5
votes
2answers
116 views

WhenEvent Issue with ParallelTable [closed]

I'm having a problem assigning the WhenEvent time value to a variable if NDSolve is iterated inside a ...
7
votes
0answers
318 views

WolframScript never exits (v11 only)

after updating to version 11, I came across a problem with the execution of package files via bash. The WolframScript program runs the entire code, but frequently it does not exit properly and as a ...
7
votes
0answers
178 views

Bug: Calling `SetSharedVariable` while kernels are running hangs them up/crashes them

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later Start a fresh kernel Quit, and maybe launch ...
0
votes
0answers
77 views

how to realized parallelization computing on 12 CPUs on linux OS

Mathematica 10.3.0 linux Question description: The data I use is a sample of m stocks, each stock has transaction data of n days. The unit of my sample is a 48*1 matrix, which is data for one stock ...
1
vote
0answers
413 views

Workstation specification for Mathematica programming [closed]

I'm interested in buying a new workstation for my lab and in the process I encountered a lot of options which some I did not fully understand. The main function this workstation is for numerical ...
4
votes
2answers
658 views

Finite Element Parallel NDSolve

How can "MeshElementBlocks" be used with NDSolve to run a parallel kernel evaluation of a Finite Element problem? ...
1
vote
1answer
336 views

How to make the ProgressIndicator for ParallelDo more efficient

I am trying to keep track of a calculation for visualization purposes ( I want to show to the user that calculation is in progress) . For that I use ProgressIndicator. However inside the paralleldo ...
7
votes
1answer
278 views

Remote Raspberry Pi Kernel from 2nd Raspberry Pi Front End

I've reviewed the following posts: Connecting two Raspberry Pi's using MathLink remote kernel through SSH How to connect the front end of one raspberry pi with the kernel of another But have been ...
2
votes
1answer
436 views

How to tell Mathematica do parallel computation?

I am using NDSolve on a workstation with 6 kernels. To speed up the simulation I have used LaunchKernels[] to load all the ...
19
votes
0answers
187 views

Status of all Evaluators?

Since I have 4 cores on my machine I typically have 4 notebooks open each with their own kernel evaluator. I'd like to construct a dynamic pane similar to the parallel kernels status window: But that ...
2
votes
0answers
60 views

Any kernel monitor alternatives?

Sometimes the Parallel Kernel Status looks like this: Is there any way to visualize the kernels without using the built in tool?
2
votes
2answers
98 views

How to redistribute definitions to parallel kernels

I am trying to redistribute a definition after removing the definition on parallel kernels. Sample code on version 10.4.0.0: ...
5
votes
1answer
116 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 ...