Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
2
votes
1answer
88 views
+50

How to make progress indicator work in paralletable mode in mathematica?

I developed a code to display a progress bar, percentage and time dynamically when I am running a plot that calculates things (using user defined function called computethings). It works nicely in ...
3
votes
2answers
88 views

4X4 matrix of distinct cubed integers with identical row and column sums

I wrote the following code: ...
0
votes
0answers
26 views

How can I use `Parallel Computing` to speed up ParallelSum process with symbolic functions?

How can I speed up the code below using Parallel Computing? I have M.12.0.0 on a workstation with these specifications: Architecture: Ubuntu x86_64 RAM: ...
0
votes
0answers
29 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 ...
4
votes
1answer
124 views

Why Does Parallelization Not Speed Up these Seemingly Well-Parallelizable, Simple Functions?

Original Example Consider function f, a parallelized version fPar, and a coarsest-grained parallelized version ...
2
votes
0answers
33 views

Parallel Matrix Manipulation: find eigenvalues and construct list

I'm having some trouble with the Parallel commands in Mathematica 12.1: I need to construct a table where its entries are {M, Eigenvalues of X[M]}, where X is a square matrix of dimension N with N big ...
5
votes
1answer
62 views

Prevent resurrection of dead subkernels

How do I prevent Mathematica from trying to resurrect subkernels that it has deemed to be dead? I would like to avoid this: ...
6
votes
2answers
81 views

Choose the number of kernels used by ParallelTable

By default, on my system, ParallelTable uses 4 kernels. Is it possible to change the number of kernels used, for example using only 3 instead of 4?
7
votes
1answer
83 views

Is there something wrong with DistributeDefinitions?

I have the following code, which fails to distribute the DownValues for the symbol f. Could anybody please explain what is wrong. ...
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 ...
0
votes
1answer
34 views

Evaluating values from a indexed ParametricNDSolve solution in parallel

I have a ParametricNDsolve solution for a differential equation for a huge system given by s1. I have no problem in evaluating ...
2
votes
1answer
37 views

DecompositionNDSolveValue analogue for NDEigenvalues

In FEMAddOns there is a function DecompositionNDSolveValue to solve stationary PDEs on a cluster. Is there a similar way to solve the eigenvalue problem for a system of ODEs in parallel kernels, ...
1
vote
0answers
114 views

Simplify Vs FullSimplify

I performed an integral and received an extremely long answer. I tried running FullSimplify on the answer, and after 72 hours gave up. Does ...
3
votes
1answer
60 views

Tracking progress of ParallelTable Computations

I have a notebook where I work with large datasets, where the data is stored as an A x B array of signals, where each signal is often 1000 samples long. In the past I would track the progress of ...
1
vote
2answers
67 views

How to Parallel submit nested do loop

This is the first time I'm trying to parallel compute something on Mathematica. So this question might be silly. I have a nested Do loop of the form: ...
8
votes
1answer
459 views

Parallel computing: cores vs threads

I'm running Mathematica on a machine wtih 48 cores and 96 threads. I want to limit the number of threads the computation can have access to. If I give LaunchKernels[1] it correctly launches a single ...
2
votes
1answer
36 views

Filtering solutions using the Select function [closed]

I have a certain code that output in the following format: {{a1,b1},{a2,b2},{a3,b3},...,{an,bn}} Where $a_1$ and $b_1$ etc are numbers. Now I want to filter ...
1
vote
0answers
29 views

Parallelization option gives Import error for Package files

I have an issue when trying to use parallelization when loading a stand-alone Package. To simplify the question I have a few scenarios: The first scenario, with single-kernel evaluation, works fine: ...
3
votes
0answers
53 views

Parallelize import of many files

I'm trying to speed up the import of a large number of files, using ParallelTable to store them in a indexed variable, eqDump. The files are in the folder "Frames" and are named "Conf_Run.1000", "...
2
votes
0answers
69 views

Aborting any computation that takes too long

One of the biggest annoyances in Mathematica is that it will often hang up without any way to abort (i.e. Alt + . or other methods can't stop the computation). Is ...
1
vote
0answers
28 views

How to close a specific Kernel after completion of evaluation in ParallelDo

I have a particular code that I have to run over several different parameters. I am using ParallelDo to parallelize the process. Due to the nature of the evaluations some Kernels finish the ...
0
votes
1answer
20 views

Defining specific evaluation task to specific parallel kernel

Is it possible to specify particular task to a particular kernel to be evaluated in parallel?
0
votes
0answers
35 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 ...
1
vote
1answer
32 views

A problem with nested tables and parallelization

My code contains the structure Table[....,Table[....,{m1,1,N}],{m2,1,M}] and I would like to use ParallelTable to improve timing. Empirically, I know that ...
7
votes
2answers
141 views

Parallelize GroupBy

I have a huge list longList that I want to split into two parts depending on whether an element of the list satisfies the condition: ...
1
vote
0answers
20 views

Command line instances sharing variables [closed]

I have a Mathematica notebook that I have been running on my desktop and am working on moving it over to a high-performance cluster. One part of the code is a random walk algorithm that uses a ...
1
vote
0answers
29 views

ParalleTable can't use 100% CPU

I have two notebook. A.nb and B.nb. When I run the ParalleTable in A.nb, it will use 100% CPU. But I change some items in A.nb to get B.nb. When I run B.nb, it only used 50% CPU. I can't find the ...
2
votes
0answers
44 views

How can I parallelize this calculation?

I need to compute a sum function: $$E=\frac{(2 \gamma )}{\delta ^2} \sum _{m,n,p,q=0}^{\text{mMax}-1} a_m a_n a_p a_q \text{A}(m) \text{A}(n) \text{A}(p) \text{A}(q) \text{D}\left(\frac{1}{2} (m+n+p+q)...
0
votes
0answers
57 views

7X7 matrix of distinct cubed integers with identical row and column sums

Problem: find a 7X7 matrix of distinct cubed integers with identical row and column sums. Well, I have the following code (that came from @kglr from my previous question): ...
0
votes
0answers
27 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: ...
2
votes
1answer
45 views

ParallelTable does not evaluate DLL functions

I have a function programed in C which I load in MMA with ...
0
votes
2answers
87 views

Solving a system of equations using the data generated by PowersRepresentations and ParallelTable

First of all, it is possible to check the code that I am asking for because I know that $x=3051$ must yield at least a solution to the problem. Well, I have the following system of equations: Now, I ...
0
votes
0answers
40 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
40 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
35 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 ...
2
votes
1answer
56 views

Vectorized RootFind for interpolated function

I've spent the last few days trying to vectorize my code to speed up root-finding on a grid. Apologies in advance if my code is poorly formatted. I have a fair amount of setup for the problem. It ...
1
vote
0answers
69 views

Faster methods for performing repeated list manipulations?

I've done my best to pore over the other posts on this site, and to the best of my ability I can't seem to find a good solution to my problem, so I apologize in advance if elements of my question are ...
5
votes
1answer
63 views

Compiling with Listable option and Parallelization

I have a bunch of triangles (200k) I need to calculate the normals of. Here are five of them below, each one with its vertices in CCW order. ...
0
votes
1answer
28 views

Map of an expression in a 3D grid is very slow

I have a quite large expression as function of $R$, $\phi$ and $Z$ as you can see: ...
2
votes
1answer
58 views

LetL Breaks in ParallelEvaluate

This was a wild head-scratcher for me to hunt down, but I now am sure LetL is the culprit. Here's a small example: ...
4
votes
1answer
155 views

Optimization: Differences between Map and ParallelMap

I just was studying Map and ParallelMap in a MacBook Air of 2 kernels. So, I tried comparing the AbosoluteTiming of these input lines and the outputs sorprised me because I thought a ParallelMap would ...
1
vote
1answer
57 views

Parallel computation gives different result

This is a followup question to this one. Following the comment, I used the code in this answer in this way: ...
1
vote
0answers
46 views

How to use Reap and Sow with ParallelDo

Consider the two cases: ...
5
votes
2answers
254 views

Is it possible to speed up this code by eliminating “For” loop?

I am finding how to speed up a code. The code and general equation are as below. ...
1
vote
1answer
104 views

Parallel computations [closed]

I'm having some problems with memory use and speed of a parallel computation. I've searched through the answers but only found allusions to the existence of a solution, but nothing concrete. The ...
5
votes
2answers
115 views

Monitor progress of each kernel within ParallelTable

I am generating a table using ParallelTable and for each table entry a Do loop is required. I want to monitor the progress of ...
1
vote
1answer
73 views

How to plot this geometric object in 3D? [closed]

Let $v_{0}=(1,0,0)$. Then how to plot in 3D the geometric object $$\left\{ \left(v_{0}\cdot v_{1},v_{0}\cdot v_{2},v_{1}\cdot v_{2}\right):v_{1},v_{2}\in\mathbb{R}^{3} \text{are unit vectors}\right\} ...
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 ...
2
votes
0answers
71 views

Connect Raspberry pi front end to remote kernel(s) (Ubuntu, the free Wolfram engine)

I am trying to connect a Raspberry pi front end (notebook) to a remote kernel running Ubuntu with the free Wolfram engine. I have researched this answer but it never worked. Using the code below I ...
1
vote
1answer
69 views

Monitoring Parallel Processes

I have a problem where my For loop will not get rid of my PrintTemporary monitor, and it means I end up with loads and loads of ...

1
2 3 4 5
15