Questions tagged [parallelization]
Questions on parallel computing in Mathematica.
775
questions
0
votes
0answers
51 views
How to improve the parallelization of the following piece of code?
I'm new to the parallelization of code. I have a code that takes so much time to run and I'm trying to parallelize it. I'm copying below the piece that I need to improve. Can someone help with the ...
0
votes
0answers
72 views
An issue with ParallelTable
Consider a function
function[x_,y_,method_,distr_]:=NIntegrate[distr[x,y,z,t],{z,zmin[x,y],zmax[x,y]},{t,tmin[z,x,y],tmax[z,x,y]},Method->method]
Here, ...
0
votes
0answers
33 views
Why does Mathematica 12.1 fail to launch available parallel kernels
I am running Mathematica 12.1 on Windows 10 Enterprise from a local PC with 24 cores using a remote site licence from my University. Under Parallel Configuration I have requested 24 local kernels (...
0
votes
0answers
24 views
parallel computation fails
I have a code that evaluates matrix elements. It works correctly in sequential mode (one Kernel).
It involves a custom function BariVi which is declared earlier and ...
0
votes
0answers
45 views
Finding if a number is perfect square [duplicate]
I used the following code to found if a specific number is a perfect square:
...
0
votes
0answers
38 views
Run Batch Job on more than One node of HPC
In continuation of the previous Ques;
I am able to run successfully my batch job on one node of HPC through-
pqsub -n 40 -t 1 -q atulya run.sh #atulya is HPC and at ...
0
votes
0answers
22 views
If statement in dynamic cluster query
I use a High-Performance Cluster for some of my work. I can dynamically see the state of the work but I couldn't use the If statement in the cluster query. I want to hear a sound when my work finishes....
0
votes
1answer
40 views
EvaluationObject not appearing
By using
ParallelSubmit[1 + 2]
the output is simply
EvaluationObject[16,1+2,<>]
I was expecting to see
.
Even in the ...
0
votes
0answers
30 views
ParallelTable - performance problem
I noticed some issue while making parallel computations with Table loop.
I noticed that when one of kernels finishes its part of job, it stops working and only rest of kernels work. But when ...
0
votes
0answers
29 views
Parallel computation in a computer with 2 CPUs
My computer has 2 CPUs, each with 8 cores. However, when using parallel operation, only 8 cores of one CPU can be called. How can I set it so that 8 cores of the other CPU can also participate in the ...
0
votes
0answers
29 views
How can I parallaize expresion that contains ParallelSum?
I have this code where the last part contains ParallelSum
...
0
votes
0answers
53 views
Generating and operating with random number
I'm working basically with the creation of random numbers that represent the positions of $N$ electrons within a box. Later, I sum all the individual electric fields generated by the electrons, thus ...
0
votes
0answers
52 views
Is possible to make RowReduce more efficient?
I have huge matrices (not square ones, the rows are many more than columns), like 85k rows and 50k columns. I would like to use RowReduce on these, but it takes too much time to do that. I need to ...
0
votes
0answers
42 views
Parallelized FactorInteger
FactorInteger has no documented option to be parallelized. Can this be done by some clever hack? Or is there a ready-made substitute that makes use of multiple ...
0
votes
0answers
36 views
Why ParallelTable warns where Table runs quietly?
I have a code involving ParametricNDSolveValue and FindRoot to find a trajectory [actually, trajectory of a line that everywhere ...
0
votes
0answers
33 views
Closing sleeping kernels in parallel computation
I want to close the kernels which have completed their jobs in parallel computation. I have a test code as following:
...
0
votes
0answers
45 views
Parallel Computation: Kill kernels which have completed the jobs while others keep running
I launch 20 parallel kernels in the background using
nohup math -run "<<file.m" &> file.out
The nature of computation is integration over various ...
0
votes
0answers
43 views
Efficiency of Parallelization
I'm trying to evaluate an expression by a repeated application of a list of rules. Like
tmp1=exp//.rules;
Here exp is a list. ...
0
votes
0answers
36 views
Converting Do expression to ParallelDo
I'm trying to use ParallelDo to speed up my code, but a problem confused me. In the following code I use Do and get the expected ...
0
votes
0answers
60 views
How to use Parallel computing on Manipulate option on ParametricNDSolveValue
My aim is to use Manipulate option on the ParametricNDSolveValue. When ever i run my code "Manipulate" option runs very slow and some time shows Aborted when check for that value of parameter it works ...
0
votes
0answers
68 views
How to Parallelize a Function Efficiently
I have a Mathematica function that I call a great many times in a notebook, as shown below. What the function does is try to identify the optimal combination of stop loss and profit target for a ...
0
votes
0answers
26 views
Optimizing and Parallel Computing for Large Dyadic Intervals
I need help with the efficiency of my code i.e. less time so I can compute for large range of values.
My function n[x] takes in a number x and outputs the ...
0
votes
1answer
222 views
How do I share my variables and my function output in parallel computing?
Here as a simple example
...
0
votes
0answers
95 views
Parameter sweeps on a HPC cluster
I have a mathematica *.wl file set up, such that there are a couple of parameters defined in the beginning, and, when run, it produces a few outputs. I can run this script on a Slurm-run HPC cluster ...
0
votes
0answers
87 views
0
votes
0answers
85 views
Saving DownValues for a function computed in parallel
Is it possible to save DownValues of a function computed using a parallelization routine?
I have a rather costly function f I wish to evaluate at a grid and save ...
0
votes
1answer
134 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
45 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
111 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
41 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
43 views
0
votes
0answers
95 views
0
votes
0answers
104 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
75 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
24 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
82 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
1answer
54 views
Parallelization of function evaluations
Problem
I have an expression that calculates the coefficients of a 2x2 matrix which depend on other three independent expressions, i.e,
$K_{l l^\prime} = ( k_{l l^\prime}^{(1)} + k_{l l^\prime}^{(2)}...
0
votes
0answers
86 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
301 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
60 views
Using WebUnit with ParallelTable
Is it possible to use OpenWebPage from WebUnit in ParallelTable? For example such as in:
<...
0
votes
0answers
100 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
198 views
Parallel matrix multiplication with configured kernels
I'm trying to test parallel matrix multiplication with commands:
...
0
votes
0answers
130 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
128 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
82 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
1answer
57 views
Force parallelization on this cell
I have three large lists that need to have certain values removed from them. Each list is completely independent of each other, so three threads should be able to execute these in parallel. Here's a ...
0
votes
0answers
69 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
46 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
82 views
0
votes
0answers
53 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 ...