Questions on parallel computing in Mathematica.

learn more… | top users | synonyms

1
vote
3answers
120 views

Where Statement

Is there a "parallel" way to perform these operations? Indices = {} For[i = 1, i <= Length[w], i++, If[w[[i]] < 0, AppendTo[Indices, i]]] Which gives a ...
1
vote
1answer
215 views

Suppress warnings in ParallelTable

I'm using ParallelTable to evaluate a function that involves NIntegrate. There are a lot of ...
1
vote
2answers
405 views

Integration and Parallel Computing in Mathematica

In mathematica, how would I use parallel computing (or paralleltable) to compute the integrals of $x^2$, $x$, $3x$ from $x=0$ to $10$ just like in the first answer of ...
1
vote
1answer
102 views

ParallelTable of ParametricNDSolve objects fail

There seems to be a problem with ParametricNDSolveValue togeteher with ParallelTable First we create a ParametricNDSolveValue object ...
1
vote
1answer
144 views

Understanding a slowdown associated with wrapping a set of nested Do loops with a ParallelDo expression

I have a set of set of nested Do loops that require data from three different arrays (though the position from each array is fixed per cycle of the outer Do loop). Let's call these arrays: ListA, ...
1
vote
1answer
208 views

Version differences in Parallelize

I am having a problem which I guess is due to version difference. I have to generate a list of unitary matrices, which I can do easily. However I came to know about ...
1
vote
1answer
124 views

Parallel numerically integrated function can't be plotted [closed]

I've been working on a problem where I need to integrate a function numerically. The function is quite complex and it takes almost an hour for Mathematica to make a plot. To speed the process up I ...
1
vote
1answer
106 views

Draw from HistogramDistribution with ParallelTable

I wanted to check something, but ran into troubles using HistogramDistribution in combination with ParallelTable. The code does the following: Compute a HistogramDistribution of some sample and use ...
1
vote
1answer
56 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 (...
1
vote
1answer
28 views

$IterationLimit and parallel computing

Short question: How can you set $IterationLimit for parallel computation? I thought just setting $IterationLimit = Infinity ...
1
vote
1answer
58 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 ...
1
vote
2answers
137 views

Do multiple instances of Mathematica run completely independently?

Let me simplify the problem I am trying to solve so that the issue I face is highlighted. Say, I want to generate $n$ samples of a Gaussian random variable. I have a script (say ...
1
vote
0answers
35 views

Troubles with ParallelEvaluate

I need to evaluate the same expression on all subkernels just like ParallelEvaluate does. This code distributes perfectly (2 kernels): ...
1
vote
0answers
28 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 ...
1
vote
0answers
42 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?
1
vote
0answers
45 views

NMaximize stops evaluating my function when run in parallel

I am trying to maximize the results of a Monte Carlo simulation with respect to some input variables. ...
1
vote
0answers
40 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:- ...
1
vote
0answers
90 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 ...
1
vote
0answers
41 views

Parallelizing an associative binary operation

I have an associative binary operation '.', which I often use in this sort of way: result = expr1 . expr2 . expr3 . expr4 The ...
1
vote
0answers
80 views

Why does ParallelTable give different answer than Table [closed]

Consider the following code a0 = 6.; ls1 = ParallelTable[k, {k, -π/a0, π/a0, π/a0/100}]; ls2 = Table[k, {k, -π/a0, π/a0, π/a0/100}]; ls1 == ls2 (*False*) Why ...
1
vote
0answers
202 views

To what extent can NonlinearModelFit be sped up?

Can NonlinearModelFit be parallelized or compiled to allow one to achieve a scalable speedup for a fitting procedure? Attempting to use this function to fit a ...
1
vote
0answers
144 views

Why doesn't ParallelMap improve the performance of FoldList?

This question arose during my analysis of the following problem: filling gaps. (The code used here is Simon Woods's work.) FoldList seems to not cooperate with ...
1
vote
0answers
180 views

Parallel linear algebra with arbitrary precision

Is it possible to do parallel linear algebra with arbitrary precision within Mathematica (in a simple manner, as is done for the machine precision)?
1
vote
0answers
212 views

Return Functions from parallel execution of module

I wrote a module which numerically solves an ODE using NDSolve. The result from this is e.g. either ...
0
votes
1answer
255 views

Why does my attempt at parallelization not work?

I want to run some function with different parameters, parallel on 4 cores (i5). When I run it without using Parallelize, processor has ~25% utilization. It's a ...
0
votes
3answers
364 views

Silence debug output from Parallelize?

I have this script, which does a bunch of image aligning in parallel: https://gist.github.com/8848a25a15da013ed1ad However, on EVERY print, Mathematica also prints from what Kernel the message came ...
0
votes
1answer
128 views

ParallelTable and DistributeDefinitions

I have a function in the following form: function[...] := With[ {...}, Table[ anotherfunction[i, j, ...], {i, ...}, {j, ...}, ... ] ] If ...
0
votes
2answers
782 views

nested numerical integration: not valid limits?

I encountered an error when I was hoping for some Mathematica (8.0.4) magic sparing me to code up numerical integration, function approximation and root-finding myself. The broader context and the ...
0
votes
1answer
83 views

ParallelTable not firing

...
0
votes
1answer
177 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. It's like something ...
0
votes
1answer
89 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
1answer
97 views

Parallelize matrix operations

I'm trying to reduce to a minimum the time of some matrix operations. When I don't parallelize and write the code in the most compact form I get the operation done in around 1sec (is this good? the ...
0
votes
1answer
230 views

Parallel computation of NDSolve and a problem

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

ParallelTable 70 times slower on 16 cores than Table on single core

Consider these code(sorry it's messy), why the ParallelTable version is 70 times slower than the Table version? ...
0
votes
1answer
491 views

On the parallelization of matrix multiplications in Mathematica 8

I have installed Mathematica 8, but I think the commands for parallelizations do not work! Even when I try to test the example in the Help of Mathematica, I face with ParallelDo::nopar: No ...
0
votes
1answer
274 views

How to distribute definitions when loading external *.m packages

i'm struggling with the following. I use ParallelTable and it works transparently as it automatically distributes the needed definitions. However, I run into ...
0
votes
1answer
78 views

ParallelMap returns incorrect results over Map

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

ParallelTable and plotting result of own define funtion

I define function which return a list of numbers ...
0
votes
2answers
83 views

Distributing value of variable to specific kernel

I want to distribute the value of a variable to a specific kernel in a parallel computing setup. Using DistributeDefinitions of course does the job, but it ...
0
votes
1answer
72 views

Launching external program in background process with ParallelSubmit

I work on the implementation of an image processing pipeline in Mathematica in which I also would like to use external programs to do certain processing steps. As an example I have macros for the ...
0
votes
0answers
76 views

strange timing behavior

The following code is from a book about Mathematica. ...
0
votes
0answers
43 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 ...
0
votes
0answers
15 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
28 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 ...
0
votes
0answers
128 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". ...
0
votes
1answer
47 views

A problem with parallelize

I am experimenting with Parallelize and ParallelTable This is the code I am using: ...
0
votes
0answers
48 views

Need to parallelize function f in a iteration

I don't have experience using Mathematica for parallel calculation. I need to do something simple to parallelize the calculation of f which is calculate each time n iterates: ...
0
votes
0answers
45 views

How to parallelize a the calculation of a vector function which is inside a recursive formula

I need some help with parallelizing the calculation of a vector function F which is inside a recursive formula. An example of the code is below for few iterations. ...
0
votes
0answers
65 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 ...