Questions on parallel computing in Mathematica.

learn more… | top users | synonyms

2
votes
1answer
74 views

Button action preventing parallel execution?

I couldn't find a better title, so I'll jump straight to the example! There is this long list of slow jobs to be executed in a parallel way, at the press of a button: ...
2
votes
0answers
303 views

ParallelTable kernels die - maybe Mathlink timeout?

I am new to parallel computing in Mathematica. I am using LaunchKernels[16] ParallelTable[] to parallelize calculations. The ParallelTable consists of approx ...
0
votes
1answer
118 views

ParallelDo and distributing function definition

Consider this code: f[i_] := Sin[i] Do[array1[i] = f[i], {i, 1, 5}] Table[array1[i], {i, 1, 5}] Returns: ...
4
votes
1answer
134 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 ...
3
votes
1answer
181 views

Image background subtraction using parallel computing

I am developing a program for pattern recognition. I want to use the parallel computing to get a real time application. I have two cameras where each one gives n frames/second. I need to process the ...
5
votes
2answers
119 views

Paralleizing the Plot function internally

I have a function of several parameters, funct(a,b,c,d,f,...). Mathematica deals with this function fine but it takes a minute or so to make a data point. I want to plot graphs of funct using code ...
1
vote
0answers
78 views

Troubles with ParallelEvaluate

I need to evaluate the same expression on all subkernels just like ParallelEvaluate does. This code distributes perfectly (2 kernels): ...
2
votes
1answer
532 views

Remote Kernel Setup: SSH fails with exit code 32512

I am having trouble with configuring parallel kernels. What I want to do is the following: run remote kernels on my home server to which I would like to connect from work using my laptop. Both ...
0
votes
1answer
844 views

How to use multiple core in evaluation?

Sorry if the question is very basic, that's because I am newbie in the Mathematica. Assume I have a module that is supposed to do a very very long calculation result = Table[0, {i, 100000000}]; ...
2
votes
1answer
73 views

Parallelization and evaluation of random number generation

Suppose I have the following functions: ...
2
votes
0answers
40 views

do successive parallel computations require distribute definitions at each intermediate step?

Suppose I am doing a parallel computation, say, using parallel table. I distribute necessary definitions to all kernels. After computation is done, I would like to use the first result in another ...
3
votes
0answers
82 views

k-means clustering in parallel

How can the k-means algorithm for some given distance function be implemented using ParallelMap or other parallel processing program constructs in Mathematica?
3
votes
1answer
152 views

Using ParallelMap to run multiple Game of Life simulations simultaniously

My Assignment and Code As an exercise in Parallel computing I've been tasked with implementing Conway's GoL in a way such that at every iteration only a fraction of cells are updated. I'm then to run ...
1
vote
0answers
97 views

NMaximize stops evaluating my function when run in parallel [on hold]

I am trying to maximize the results of a Monte Carlo simulation with respect to some input variables. ...
4
votes
1answer
138 views

Parallelizing sparse array construction

I have a very large sparse array, and the computation of individual matrix elements is fairly expensive. The Matrix is Hermitian and traceless, so I would like to construct only the sub-diagonal ...
8
votes
1answer
474 views

Optimizing Monte Carlo simulation of a Pred-Prey model

My assignment and code As part of an assignment for one of my classes, I'm trying to run a "massive" Monte Carlo simulation in Parallel on the follow model: ...
1
vote
1answer
138 views

Connect to Windows kernel from Linux computer

I've seen many questions regarding the connection to a Linux machine from a Windows one, but I need to do the opposite. Situation: I have Mathematica on my Linux laptop (...
4
votes
0answers
325 views

OpenCL vs. CUDA with Mathematica

I am thinking about using GPU programming with Mathematica using a MacBook Pro with a NVIDIA GPU. At this page, the Mathematica documentation says "Programming OpenCL in the Wolfram Language is simple ...
7
votes
2answers
317 views

Communication between local kernels

this is my first post but you have already helped me so many times that I have to start by saying thanks a lot! I have a really long calculation to do, and I have used the Evaluation->Kernel ...
3
votes
1answer
295 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 ...
1
vote
0answers
53 views

Placing package in existing Utilities` context has odd paraellelization effect

I noticed this in V.10 but possibly it was in effect in V.9. I have a package which in simplified form looks like:- ...
0
votes
1answer
122 views

ParallelMap returns incorrect results over Map

I've written a function to pull in the useful column of a large data file: ...
10
votes
1answer
314 views

Partial Differential Equation in Parallel

is there any native way to implement multi-core parallel solving of PDE in Wolfram Mathematica? WM 10 now supports Finite Elements Method, but it is actually useless without parallelization. Usually ...
2
votes
0answers
358 views

ParallelSum in Mathematica 9 vs 10

Here's part of a package I'm working on: ...
0
votes
0answers
95 views

strange timing behavior

The following code is from a book about Mathematica. ...
0
votes
0answers
61 views

Shared variable impacting speed? [duplicate]

I am using a shared variable as a progress indicator ( via SetSharedVariable[counter] and then Dynamic[counter]), to keep track ...
3
votes
0answers
325 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: ...
30
votes
1answer
1k views

Mma 10: Half the parallel power (Macs)?

Here is a comparison of the parallel kernels launched under Mathematica under v9 and v10, on the same identical current 2014 R2-D2 Mac Pro ... [ Update: Valerio has commented that the same issue ...
3
votes
1answer
332 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 ...
2
votes
0answers
53 views

Timing of ParallelDo versus Do: simple example [duplicate]

I'm trying to understand why a simple do-loop takes substantially longer when done in parallel than sequentially: ...
4
votes
1answer
171 views

ParallelEvaluate: Evaluation Rules and Increment

I'm trying to understand how ParallelEvaluate works, considering the two following snippets: ...
4
votes
0answers
287 views

How to force the compilation language to be C++ (not C) in CreateExecutable or CreateLibrary

I'm trying to speed up a section of a Mathematica 9.0.1 notebook by performing some calculations in C++ with the Cilk Plus and Threading Building Blocks tools available for the Intel C++ 14.0 compiler ...
0
votes
0answers
17 views

How can I set global computation options ($MaxPiecewiseCases) for parallel kernels? [duplicate]

I'm trying to do a calculation in parallel that requires setting $MaxPiecewiseCases. How can I do this? This small test case doesn't work for me: ...
0
votes
0answers
34 views

Notebook stops using extra kernels after some time

Have a mathematica .nb job where I've programmed to run on parallel. Everything goes fine for about an hour but after this most kernels just stop being used by the program. I can see this happing in ...
1
vote
1answer
41 views

$IterationLimit and parallel computing

Short question: How can you set $IterationLimit for parallel computation? I thought just setting $IterationLimit = Infinity ...
0
votes
0answers
377 views

Cluster integration: Problem connecting to Sun Grid Engine

I'm trying to launch some kernels in a cluster engine running Sun Grid Engine using Cluster integration. But I'm getting the error "Cannot find components required for SGE". ...
1
vote
0answers
221 views

Diagonalization in parallel

I would like to diagonalize one unitary non-sparse matrix of size 12870 with complex number entries (not symbols, this is really a numerical problem). Is is possible to make eigensystem run in ...
0
votes
1answer
88 views

A problem with parallelize

I am experimenting with Parallelize and ParallelTable This is the code I am using: ...
26
votes
1answer
2k views

Why won't Parallelize speed up my code?

What reasons are there that can cause parallelized Mathematica code not to run with full performance?
0
votes
1answer
115 views

ParallelTable not firing

...
1
vote
1answer
95 views

Using parallel computing to build a matrix recursively

I am trying to compute the product of a sequence of matrices using the command ParallelDo. Of course, if I use the simpler command ...
2
votes
0answers
114 views

ParallelTable and expensive functions

I would like to build up a 2D-Table using ParallelTable as follows ...
0
votes
1answer
77 views

ParallelTable and plotting result of own define funtion

I define function which return a list of numbers ...
3
votes
1answer
104 views

ParallelTable Works in Regular Notebook but Gives Error When Packaged

Consider the following: ...
0
votes
1answer
608 views

Parallel computation of NDSolve and a problem

I used this code to solve a system of differential equations: ...
3
votes
1answer
654 views

Parallel computation of a system of differential equation

I need to solve a system of differential equations which contains, at minimum, ten thousands of differential equations. Actually, I am trying to solve density matrix equation $$\frac{d}{d t}\rho(t) = ...
7
votes
1answer
160 views

Garbage collection for memoized functions on subkernels

I have a top-level function which operates on some data: findBestIntegers[data_]:=ParallelMap[optimize,data] which makes parallelized calls to an optimization ...
0
votes
1answer
114 views

Can ParallelDo speed up a counting problem?

How to make parallelize the following code keeping the same "idea". The example I have in mind is more complicated, but I would like to know if a program of this structure can be parallelized? ...
0
votes
0answers
114 views

How to parallelize this code

Here I obtained one code which should tests some zeros of the poly for various g, but sometimes I have to many cycles because of step and I need to parallelize the running on all cores. Classical ...
3
votes
1answer
106 views

Creating a parallelizable DiscretePlot

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the ...