Questions tagged [parallelization]

Questions on parallel computing in Mathematica.

Filter by
Sorted by
Tagged with
3
votes
3answers
263 views

ParallelDo with two loop counters

why isn't Mathematica using all the cores in the following code. ...
3
votes
1answer
104 views

How to catch Print and Monitor message dialog?

Context I am trying to parallelize a function which is verbose, and which as a consequence Mathematica does not seem to treat in parallel when doing something like ...
3
votes
2answers
142 views

Dot product of lists with non-equal dimensions

I have two lists, er and ns: Dimensions@er Dimensions@ns gives: ...
3
votes
1answer
655 views

Problem with ParallelTable

The following code creates an array of length N, such that the sum of elements is less than or equal to p and each element is between 0 and l. All elements are integers. (code courtesy, Kellen Myers ...
3
votes
1answer
300 views

Optimization of power tower fractal generator [closed]

I tried to optimize the code for generating power tower fractals from here. As the author suggested, I tried to memorize the points already tested in a list. Here is my code : ...
3
votes
1answer
119 views

How can I set the kernel for CreatePalette?

I have written some code that requests some calculations from an SQL server every N seconds and uses a palette: CreatePalette[Dynamic[DateListPlot[...]]] I ...
3
votes
1answer
501 views

Clearing distributed definitions from remote kernels

The documentation shows the following example to "Remove a distributed definition..." Oh, course this doesn't work without redefining the function prior to re distributing the definition. The ...
3
votes
1answer
51 views

PatternTest vs Parallelization

Bug introduced in 10.0 or earlier and fixed in 11.2 Consider the following function ...
3
votes
1answer
118 views

Why does choosing the method break the parallel computation? [closed]

I have a workable function with using NDSolve with predefined method for solving. But for some reasons I should use the parallel computation. The main problem is that the NDSolve can't build the ...
3
votes
1answer
91 views

How to trigger WhenEvent for NDSolve in parallel?

Say I have a system of differential equations that I need to solve for different initial conditions and say the process is sufficiently expensive and I have sufficiently many that I am calculating in ...
3
votes
1answer
73 views

Is it possible to recover remote subkernels if Internet connection is lost?

I was wondering if it is somehow possible to start a parallel calculation (where each part that is run in parallel takes about an hour) on remote subkernels, then disconnect the Internet connection, ...
3
votes
1answer
99 views

What is the most effective way to reassign values in an array based on their positions

I have to reassign values in a big array many times and it turned out to be the most time consuming in my program. The best way I could figure out is this ...
3
votes
1answer
212 views

How to see Monitor temporary cell with ParallelSubmit?

I have a function to load large files into a "HSQL(Standalone)" database for processing that uses Monitor to update the ...
3
votes
1answer
171 views

What does it mean when number of LaunchKernels much greater than cpu cores?

My Laptop only has two cores, In[69]:= $ProcessorCount Out[69]= 2 And ...
3
votes
2answers
525 views

Efficient and fastest way to execute 4 nested loops

I have a question regarding the use of ParallelDo. I tried to parallelize the following code involving four nested Do loops by ...
3
votes
1answer
137 views

Mathematica 10, With and ParallelEvaluate: New syntax?

Consider the following trivial code to evaluate something on a parallel kernel ...
3
votes
1answer
128 views

Why doesn't my expression evaluate at the subkernel?

Consider this code: ...
3
votes
1answer
110 views

How to group these output as one?

...
3
votes
2answers
406 views

Executing several input cell simultaneously with parallelization

How can I execute more than one input cell simultaneously using different processor. For example consider this two cells ...
3
votes
1answer
215 views

ParallelTable of ParametricNDSolve objects fail

There seems to be a problem with ParametricNDSolveValue togeteher with ParallelTable First we create a ParametricNDSolveValue object ...
3
votes
1answer
583 views

Determining the partitioning of Do loop iterations between kernels?

Say I have some Do loop that I'd like to evaluate in parallel: Do[Something, {i, 1, M}]. I'd like to split this list up into ...
3
votes
1answer
38 views

How to get KernelID in from KernelObject?

In a nutshell, how can I get this number: I'm having trouble because $KernelID isn't a function and the FullForm is this crazy thing: Motivation: After you call ...
3
votes
1answer
38 views

Is there any sequence using OpenAppend and ParalleTable for continuing writing data?

After I post the question writing data without erasing exist data when quit kernel , I can successfully use OpenAppend to realize it. But if I work with ...
3
votes
1answer
78 views

ParallelDo gives different solution to Eigensystem

I am trying to calculate the eigensystem of a large matrix (e.g. 256x256). I have found that when I do this within a ParallelDo (because I am actually calculating many of these eigensystems), the ...
3
votes
1answer
72 views

What are the current options for running Mathematica Enterprise on a web service/cloud with many cores?

The answers to similar questions on Mathematica Stack Exchange and Wolfram Community are several years out of date. I'm doing time-intensive Monte Carlo simulations with Mathematica Enterprise (...
3
votes
1answer
141 views

LaunchKernels generates a mysterious error message

In Mathematica v. 11.1.0, on OS X 10.11.6, I get the following error message when I LaunchKernels: ...
3
votes
1answer
74 views

Variable not available in kernel despite `DistributeDefinitions`

I am following this answer to evaluate certain cells in a separate kernel. I have created a separate kernel called K2 and have the following MWE: ...
3
votes
1answer
233 views

Why is $ProcessorCount not equal to LaunchKernels[ ]?

Normally, number of $ProcessorCount should be the same as LaunchKernels[], but if they are not the same, what is the problem? ...
3
votes
1answer
289 views

Parallel kernels cannot launch: LinkOpen::linke error [closed]

I have been regularly using parallel kernels on my machine but this morning all I receive is a cryptic error whenever I call any parallel function (LinkOpen::linke). As far as I can see sequential ...
3
votes
1answer
191 views

Creating a parallelizable DiscretePlot

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the ...
3
votes
1answer
191 views

ParallelTable slowdown for a task involving ComponentMeasurements

I'm having trouble understanding a slowdown associated with code I'm running, which should be trivial to parallelize. My code looks something like this: ...
3
votes
2answers
69 views

Inconsistent LaunchKernels[8] versus LaunchKernels[] on Linux?

Context I am interested in doing parallel computation on a linux machine. Odd behaviour When I chose explicitly the number of kernels ...
3
votes
1answer
341 views

Jacobian for parallelised FindRoot with multiple variables

Michael E2 explains how to use parallel processing to speed up multiple FindRoot calculation with the same function in https://mathematica.stackexchange.com/a/...
3
votes
1answer
116 views

SetOptions in parallel computation

I have NIntegrate[] inside a ParallelDo[] loop. Outside the loop I set some options for the integration using ...
3
votes
1answer
84 views

Skipping commented in a stream from OpenRead

Is there a solution to skip comments in text files that are imported with OpenRead? I know there are solutions for Importand <...
3
votes
1answer
1k views

How to create parallel loops

My knowledge in parallel computing is very limited. I tried to figure out how to proceed using the mathematica help but did not really find what I needed. The programme looks as shown below. There are ...
3
votes
2answers
153 views

Add Results of ParallelMap in Parallel

I'm new to coding in parallel, but I really could use it. I need a command to call a function on each element in a huge list, and then add them all up. Currently I use something like this: ...
3
votes
1answer
1k views

Appending elements to a list in parallel table

Is there any way to store values in a list that is being computed in parallel? For example, if ParallelTable is computing some ...
3
votes
1answer
241 views

Image background subtraction using parallel computing

I am developing a program for pattern recognition. I want to use the parallel computing to get a real time application. I have two cameras where each one gives n frames/second. I need to process the ...
3
votes
1answer
156 views

ParallelTable Works in Regular Notebook but Gives Error When Packaged

Consider the following: ...
3
votes
1answer
943 views

How to parallel this nested table efficiently?

I have an 8 core CPU and want to parallel evaluate the following nested Table Table[Table[expr[i,j], {i,1,10}], {j,1,4}] But ...
3
votes
1answer
394 views

How can I prevent these warnings while using ParallelTable

I have this code to find all the permutations of a set of letters that form legal words. ...
3
votes
1answer
781 views

Are there any openCL test suites?

I have a new ATI gpu that I have been trying on 3 different distributed computing projects. I get errors on each work unit. The errors indicate No Protocol which could be caused by a bad environment ...
3
votes
1answer
54 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 ...
3
votes
1answer
68 views

Parallelization and assumptions

I'm having a simple problem. Here is the code Table[Simplify[DifficultFunction[i],assumptions], {i,DifficultSet[1, 2]}] the correct and simplified answer is ...
3
votes
1answer
159 views

Execute a function in parallel on different cores?

Suppose I have a function f which takes a list and does something with it: ...
3
votes
1answer
125 views

LaunchKernels behavior

I have one processor with 2 cores on my local computer. CloseKernels[];LaunchKernels[] (* {"KernelObject"[1, "local"], "KernelObject"[2, "local"]} *) I can't ...
3
votes
1answer
263 views

Parallel Apply on a deeply nested expression

I have a deeply nested expression, i.e. something like {{{{...}..}..}..}, and I'd like to use Apply in a parallel fashion, e.g. <...
3
votes
1answer
1k 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 ...
3
votes
1answer
211 views

Using ParallelMap to run multiple Game of Life simulations simultaniously

My Assignment and Code As an exercise in Parallel computing I've been tasked with implementing Conway's GoL in a way such that at every iteration only a fraction of cells are updated. I'm then to run ...

1
5 6
7
8 9
15