Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

194 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

Reading a chunk of data from a stream using Parallelization

I am trying to read a stream and perform some operations in parallel. Here is the logic of the code inside the ParallelDo: 1- Open stream 2- Read chunk of data 3- Close stream 4- Process the data ...
0
votes
1answer
71 views

Update initial conditions recursively/sequentially within ParallelTable using NDSolve

I am modelling 3D motion of particles inside a force-field using second-order coupled PDEs, which I solve from time t=t0 to t=t1 with initial conditions x0,y0,z0. I have a total number of "particles" ...
0
votes
0answers
32 views

ParallelTable fails to finish evaluating after completing computation

I am executing a ParallelTable but the code fails to finish. This is the setup. f is a function. ...
0
votes
0answers
77 views

CUDAQ::internal: CUDALink experienced an internal error

I have Mathematica 11.0.0 installed on Windows 10, with an NVIDIA GT 630M GPU on my Dell Inspiron. I am trying to run the CUDA examples in the Help files. All of the setup functions for CUDALink work ...
0
votes
0answers
35 views

Fail to modify the elements of a global vector in ParallelTable

I want to modify a vector in a Table function, such as vec = {0, 0, 0, 0}; Table[vec[[i]] = i, {i, 1, 4}]; vec // output {1,2,3,4} however, when I use ...
0
votes
0answers
33 views

Shared variable in Compiled ParallelDo

Here is a compiled, non-parallel function that works. ...
0
votes
0answers
88 views

Speed up execution of this function

I would like to speed up this following function: ...
0
votes
0answers
61 views

Properly parallelising FindRoot for multiple starting values

I have a problem I want to find numerical solutions for with different starting variables. Let F be a vector supposed to vanish, which in its definition includes ...
0
votes
0answers
45 views

Writing to file with ParallelDo

I have been experiencing difficulties writing to file in MMA_11.3 when using ParallelDo. The structure of the code is quite simple: a main script runs a ParallelDo block in which a function (...
0
votes
0answers
32 views

Can't open setting of Parallel Kernel Configuration on Mac and Windows after configuring remote kernels

In Mathematica 11.3 on Mac and Windows. Once I've set up the connection with gridMathemtaica's remote kernels. Then I close those machines/kernels and restart my Mathematica. When I click the ...
0
votes
0answers
237 views

ParallelTable::nopar: No parallel kernels available; proceeding with sequential evaluation

I am trying to use a the following code: ...
0
votes
0answers
23 views

Can Share [] command and ParallelTable be used together?

Can Share [] command and ParallelTable be used together? I mean, does this result in the data exchanging between different cores? A simple example: ...
0
votes
0answers
55 views

Parallelize Slow on Interpolated Functions

So I have an FEA solution from COMSOL and I import the mesh and values at the vertices to create an interpolation function. ...
0
votes
0answers
64 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 ...
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 ...
0
votes
0answers
185 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
0answers
52 views

Using WebUnit with ParallelTable

Is it possible to use OpenWebPage from WebUnit in ParallelTable? For example such as in: <...
0
votes
0answers
82 views

How to calculate the symbolic inverse matrix on cluster with multiple nodes?

I'm trying next commands for Mathematica 11.2.0: ...
0
votes
0answers
146 views

Parallel matrix multiplication with configured kernels

I'm trying to test parallel matrix multiplication with commands: ...
0
votes
0answers
107 views

gridMathematica: manual launching kernel on cluster node error

I have a cluster with gridMathematica installed, and the version is: Mathematica 7.0 for Linux x86 (64-bit) Command ...
0
votes
0answers
102 views

Parallel computation on an HPC

This is my first time using an HPC and I am completely lost as to how to successfully launch a master kernel and a set of slave kernels. So far I have a .sh called <...
0
votes
0answers
210 views

Parallelizing NDSolve

I have a system of 300 coupled linear ODE's, which takes days to solve with NDSolve (i.e. but it's basically not possible to solve it since it requires >100 gigabytes of RAM). In other posts, I read ...
0
votes
0answers
134 views

Keep kernels alive in parallel evaluations of several scripts

I have written a parallel script file that after initializing the kernels it puts the result of some computation in a file. I provide some external parameters to the script. I would like to run the ...
0
votes
0answers
47 views

Is there a way to use CoefficientRules in a parallel way?

Probably this question is too general. I have an extremely large polynomial expressions exp0 and CoefficientRules[exp0,var] takes too much time. Is it possible to find a way to get the ...
0
votes
0answers
65 views

The conditions used in Sum or ParallelSum: Calling a function/variable

For some reason, I encounter a problem when doing the Sum and ParallelSum (or doing the Do or ParallelDo, e.g. such as the issue here), I figured that the potential cause of the problem can be ...
0
votes
0answers
62 views

Dealing with cache file locks when using EntityValue in ParallelMap

I'm trying to run the following (naturally, I have FAR more zip codes and a much longer list of properties, both truncated for speed of the example): ...
0
votes
0answers
45 views

Improve timing of URLExecute command?

I am using a ionosphere model that runs online, IRI2016. The URL gives me a table with usefull parameters like electron density in upper atmosphere. The URLExecute...
0
votes
0answers
75 views

Parallel Evaluation

I want to speed-up the following program for obtaining Poincare Sections ...
0
votes
0answers
50 views

Error message when calling Parallelize

I have some initialization code that I would like to run on any newly started kernel, and, following this question, my code starts with a call to Parallelize; on ...
0
votes
0answers
92 views

Speed up performance of nested function computations

I'm trying to create a model for intensive computations for a homomorphic encryption scheme. The core of my problems is a series of function calls ...
0
votes
0answers
235 views

Print output of parallel kernels to console

Is it possible to print all the output (inside a Print[] command) of a parallelized computation to the console? I can't find a control for this. I find that my computer can handle printing to the ...
0
votes
0answers
173 views

ParallelTable and Table give different results

I am trying to parallelize a table operation, but I find that the table is not the same with and without the parallel function. I have looked at this question, but I cannot transfer it to my own ...
0
votes
0answers
145 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 ...
0
votes
0answers
48 views

How can I speed up the evaluation of my equations?

Calculation of eigenvalues and eigenvectors in dependence of the parameters ...
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 ...
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 ...
0
votes
0answers
169 views

What is the correct way to control thread parallelism?

I was trying to benchmark a program I have writing against Mathematica (or better said the internal Kernels used, like MKL). Since my program is not threaded I wanted to compare with Mathematica 10 ...
0
votes
0answers
128 views

How to determine side-effects in parallel computation? Possibly associated to Kernel not closing reliably

I have written a bunch of code to simulate some measurements. To speed things up, I intended to obtain the measurement values via a ParallelTable. However, it turns ...
0
votes
0answers
102 views

Concerns about scheduled tasks

I'd like to know how CreateScheduledTask and StartScheduledTask work internally. When I run the following code: ...
0
votes
0answers
74 views

Time needed to solve NIntegrate is much longer than what I was expecting

I'm trying to do the following list: tablevdip = ParallelTable[{x, y, Vdip[x, y, 6]}, {x, -1, 1, .5}, {y, -1, 1, .5}];] with ...
0
votes
0answers
94 views

Symbol definition in parallel kernels

Suppose I have a reasonably large number of floating point arrays, obtained from prior numerical simulations. These are stored as binary files named data_#####.dat ...
0
votes
0answers
112 views

strange timing behavior

The following code is from a book about Mathematica. ...
0
votes
0answers
591 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
0answers
165 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 ...