Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
4
votes
1answer
684 views

using interpolation functions in ParallelMap

Edit I am editing the question to give a simple workable example. It is at the bottom under the heading Example. The original question is now headed withe Background. Background I am trying to ...
4
votes
1answer
247 views

NDSolve`Iterate with shared variables

I'm trying to parallelize a set of NDSolves that share a few variables. Here is a short working example: ...
4
votes
1answer
282 views

Monitor ParallelMap (again) - how to predict the number of function calls efficiently?

I am currently implementing a function to let me monitor the progress of a computation running in parallel (similar to the answers in Monitor doesn't work with ParallelTable). The goal is to have ...
4
votes
1answer
180 views

When using Java objects through JLink, how can I multitask the objects?

I use Mathematica 11.0.1 on Windows 10 and have a Java class which acts as a 'facade' for a headless browser (PhantomJS). In Mathematica I instantiate the class through JLink as follows: ...
4
votes
1answer
91 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 ...
4
votes
1answer
90 views

InstallJava on a parallel kernel while debugging in Wolfram Workbench

Here's my problem. I need to create a link between a client that is a parallel Wolfram kernel and a server through a Java API. I'm using Wolfram Workbench in debugging mode (like most of the time ...
4
votes
1answer
665 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 ...
4
votes
1answer
604 views

DistributeDefinitions doesn't work as expected when used for table iterator bounds?

I am new to parallelization in Mathematica, so this question may reflect some elementary confusion. I am attempting to parallelize a rather complicated module which, as part of its internal operation,...
4
votes
1answer
69 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 ...
4
votes
1answer
230 views

Mathematica not using all cores available

I am trying to run a ParallelDo loop in Mathematica, that uses NSolve to solve an equation for a number of different input ...
4
votes
1answer
339 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 ...
4
votes
1answer
73 views

Parallelization of MATLink

I am attempting to parallelize the construction of a table using MATLink and ParallelTable. Let's consider a sample ...
4
votes
1answer
96 views

wolframscript command line output from ParallelDo kernels contains lots of gibberish

I run this code: ParallelDo[ Print["Hi"];, {i,Range[2]} ] And I get this: ...
4
votes
1answer
80 views

Possible bug ParallelDo (or better practices for ParallelDo)

ParallelDo is having problems evaluate an expression that evaluates fine outside ParallelDo. The problem is not due to the use ...
4
votes
1answer
812 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 ...
4
votes
1answer
80 views
4
votes
1answer
163 views

Remote parallel processing

(The problem has been narrowed down, and solved to a more simple one described at the end of the post beside UPDATE 3) I'm doing some numerical work that takes quite a long time to run on my computer ...
4
votes
1answer
176 views

How can I access memoized values from parallel evaluation? [duplicate]

I want to evaluate a table of functions with ParallelTable. Here is the serial code: ...
4
votes
1answer
214 views

TimeConstrained for parallel computations

The Mathematica manual states TimeConstrained takes account only of CPU time spent inside the main Mathematica kernel process; it does not include additional ...
4
votes
2answers
455 views

Using Multiple Kernels When Making Plots

I am running a notebook that makes multiple plots. I define a function and then I want to plot that function for different choices of parameters, using RegionPlot. ...
4
votes
0answers
32 views

Difference in computation speed of Eigensystem not to expectation for ParallelTable and Table

I was trying to compute the time it takes for Eigensystem to evaluate while being inside a ParallelTable, as it is well-known LAPACK subroutine has an inbuilt Parallelization to it. And the difference ...
4
votes
0answers
39 views

Lightweight Grid: transfer a file to the master kernel? [closed]

I am trying to run code on a Lightweight Grid using ParallelDo. I have ~300 jobs that each take ~20 minutes to run and produce ~8 MB of data, and I am using a ...
4
votes
0answers
96 views

How to do parallel computation when using LinearProgramming function?

I have a LP problem which contains 2n+3 variables with 4n+6 inequality constraints. I was trying to use Mathematica's LinearProgramming function. When n is small, like less than 30, it gives outcome ...
4
votes
0answers
107 views

How to speed up code in ParallelDo loops?

I have a piece of code that I'm trying to run in a ParallelDo over 32 kernels. Using a normal Do loop in a kernel Mathematica ...
4
votes
0answers
824 views

Get::noopen: Cannot open CloudObjectLoader` error when running Mathematica on remote cluster

I have been running Mathematica on a remote cluster for quite sometime. Recently, any jobs that call LaunchKernels[] for parallelization return the error Get::...
4
votes
0answers
97 views

Parallelize Dateset query

I would like to evaluate a Dataset query in parallel, my latest approach being: ...
4
votes
0answers
111 views

Problem with Parallelization when using Packages

I tried to find a solution to my problem in several answers posted in MSE but due to lack of my knowledge on parallelization territory, I couldn't figure out solution to my problem. I have a big code ...
4
votes
0answers
58 views

How to make use of multithread feature of Eigenvalues in ParallelDo or ParallelTable [duplicate]

In mathematica, Eigenvalues is implemented internally using intel MKL. When running Eigenvalues[RandomReal[1.,{2000,2000}] ...
4
votes
0answers
385 views

Parallel Kernels and Hyperthreading

I am using Eigenvalues a large number of times on a machine with 8 cores. When I run Eigenvalues one time without any parallel ...
4
votes
0answers
145 views

ParallelSubmit and WaitNext: check if a job is done before calling WaitNext

Say I process something with ParallelSubmit: LaunchKernels[] job = ParallelSubmit[1 + 2] Parallel`Developer`QueueRun[] Then, I will use ...
4
votes
0answers
542 views

Parallel Kernel Status

For parallel computing, the window Parallel Kernel Status shows some information on the subkernels. I can use two kernels, and which each of them I can do parallel computations. However, it seems that ...
4
votes
0answers
763 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 ...
4
votes
0answers
173 views

ParallelTable and expensive functions

I would like to build up a 2D-Table using ParallelTable as follows ...
4
votes
0answers
174 views

LibraryLink parallel performance

I'm trying to use a LibraryLink function in parallel. It is an embarrassingly parallel problem, so that no dependency between those parallel tasks. However I can only get the parallel efficiency about ...
4
votes
0answers
988 views

Remote kernel shuts down after several seconds

I have Mathematica 9 installed on two Windows Server 2008 R2 machines. Now i want to try using one of them as a frontend with local kernels and the other one for remote kernels. OpenSSH 6.5 for ...
4
votes
0answers
276 views

How to batch run Mathematica code from Python?

I have this notebook: ...
4
votes
0answers
214 views

How can you link Parallel Mapping and Error tracking

Following this question and the comments made, together with the information in this question, the following code allows error tracking and debugging very nicely. ...
4
votes
0answers
375 views

Mathlink and multithreading

In order to make my computations faster I have developed a C/C++ application calling Mathematica kernel and performing many operations using Mathematica functions for equation solving. Now I want to ...
4
votes
0answers
103 views

Mathlink and Parallelization [duplicate]

Possible Duplicate: How to run mathlink external commands in parallel? Abstract I have a binary file compiled to work with MathLink. I can install the file and run the component functions from ...
3
votes
3answers
212 views

Optimizing a series of basic matrix operations—scaling doesn't seem right with matrix size

I have a simple operation that I'd like to apply to an n×n matrix. My problem (well, one of them...) is that it runs in, say, 4 seconds for a 100×100 matrix, but it took five and a half minutes to run ...
3
votes
1answer
913 views

3 hour calculation? ParallelMap & ParallelTable

I'm having some problems with slow Mathematica code... I'm basically doing a computation that's is expected to take 3 hours (!) in my Core i7 with 4 processors... I'm basically computing an index (of ...
3
votes
2answers
1k views

Difference between sub MathKernel and MathKernel

When I try to run Mathematica processes in parallel on a Linux based server, I see that my server allows 7 MathKernels and 28 sub MathKernels. I was wondering what the difference is and how I can take ...
3
votes
1answer
274 views

Parallelization of REvaluate[]?

Is there a way to run several RLink computations via REvaluate[] in parallel, e.g. with ParallelTable[]?
3
votes
2answers
901 views

Is there a way to parallelize the convolution component of EdgeDetect?

Provided an image like - test = Import["http://upload.wikimedia.org/wikipedia/commons/d/d5/Sunflowers.jpg"] We can run ...
3
votes
1answer
186 views

How to speed up filling a matrix as much as possible in a loop?

In order to find the solution of an $n\times n$ system of nonlinear equations by the method $x_{k+1}=x_k-D_k^{-1}f(x_k)$ where $D_k$ is an approximation of the Jacobian and defined by \begin{equation}...
3
votes
1answer
204 views

How can I understand this short example?

First launch kernels LaunchKernels[4] {KernelObject[5, "local"], KernelObject[6, "local"], KernelObject[7, "local"], KernelObject[8, "local"]} Then I calculate ...
3
votes
1answer
1k 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) = ...
3
votes
1answer
351 views

Parallele Computing - 2 vs. 4 processor speed [closed]

I am evaluating a code which ends with Table having ParallelEvaluate of a function XXXX[phi, theta, si]. For a grid of 225 ...
3
votes
1answer
740 views

Parallel calculation is 5 times slower than the non-parallel one

I have used code from Tell ParallelMap[] to use just specific kernels : ...
3
votes
2answers
188 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: ...

1
4 5
6
7 8
15