21,954 questions
0
votes
0
answers
15
views
OptimisticLockingException when using multiInstanceLoopCharacteristics for parallel execution of subprocess
i have the following process definition i trie to execude on Camunda 7.24 / CibSeven 2.1 which currently logs during execution many OptimisticLockingException. i could already trace it down that it ...
-4
votes
0
answers
33
views
Need help running a modified LLM framework [closed]
I am using OpenAI's API to run the following framework called LLM-SR, but program gets stuck or only one sample results are generated. Is anyone else able to try and run it on their end? Below is the ...
-1
votes
0
answers
42
views
Accessing Viability of Multiprocessing [closed]
Context: I recently learned about parallel processing. I am running a program that generates polynomials, and tests the efficiency of multiple root finding algorithms on each polynomial.
Currently: ...
1
vote
0
answers
73
views
Intuition over TBB parallel scan/parallel prefix requirements
I am reading a paragraph about the tbb::parallel_scan algorithm from the book Intel Threading Building Blocks, and I understood what the operation does serially, but I am not understanding what are ...
Best practices
0
votes
2
replies
115
views
Looping Datasets in R
Essentially I am trying to create a dataset that is dependent on prior rows to generate values for any given row. I then would like to run this loop over many IDs for an entire dataset. Current set up ...
Advice
1
vote
1
replies
29
views
Is there a way to transfer MBTiles formatted maps faster?
I need to transfer a MBTiles map tiles from a disk to another, is there a faster way then just mv? It is huge and takes time.
0
votes
1
answer
50
views
Parallel Processing in Sclang
I am doing some calculations on spectra, doing some maths on each partial. This is taking a lot of time, but since the partials are all calculated independently, I wonder how to do parallel processing ...
0
votes
0
answers
21
views
Integrate socket.io namespaces with Node Cluster
I am trying to integrate socket.io with Node's HTTP alongside Node's Cluster Module. Consider the reproducible example:
index.js:
let cluster = require('cluster')
let fs = require('fs')
let http = ...
0
votes
0
answers
30
views
How to prepare a set of equations for parallel expansion in TFORM?
I’m working with FORM/TFORM to automatically expand a large set of symbolic equations.
My goal is to make the expansion process run in parallel on multiple CPU cores using TFORM.
Here’s a simplified ...
15
votes
0
answers
615
views
Why does my C++ N-body simulation have a pulsating performance slowdown?
I've been developing a 2D N-body gravity simulation in C++, and I've run into an interesting performance issue. Instead of a stable frame rate, the application's update time systematically pulsates ...
0
votes
0
answers
59
views
How to decide the data size handled by each processor/core in SIMD?
I’m learning how to use SIMD (Single Instruction, Multiple Data) for parallel data processing.
Suppose I have a large dataset (e.g., an array of 1 million floats), and I want to process it efficiently ...
1
vote
1
answer
104
views
Is CPU multithreading effected by divergence?
Building on this question here
The term thread divergence is used in CUDA; from my understanding it's a situation where different threads are assigned to do different tasks and this results in a big ...
0
votes
1
answer
153
views
For Xunit 3, when using [assembly: CaptureConsole], does that work with parallel tests
We have several tests which have been switched to using XUnit 3. We have an assembly-level
[assembly: CaptureConsole(CaptureOut = true, CaptureError = true)]
and we have several "more ...
1
vote
0
answers
68
views
How to properly parallelise JFreeChart's PNG generation?
I use JFreeChart to create various kinds of charts en masse, based on huge amounts of data. Those charts are only meant to be written to PNG files on the hard drive; no JavaFX, Swing, AWT or other GUI ...
0
votes
2
answers
90
views
Nested slurm jobs in R using future.batchtools
I am trying to test future.batchtools for parallelisation in R.
I have a small test job (run_futurebatchtools_job.R) as:
library(future)
library(future.batchtools)
# Set up the future plan to use ...
0
votes
0
answers
108
views
How to make parallel within the parallel?
Right now I am running a model optimization to optimize one set of parameter for several sites (in total 47 sites, i.e. the cost function sum over these 47 results). Site computation is independent ...
1
vote
1
answer
109
views
How to remove intermediate results after execution of the chord without blocking execution?
Here’s the pattern I want:
Dispatch multiple tasks in parallel.
Aggregate all their results into a final result.
Remove the intermediate results right after the chord result is ready, without ...
0
votes
0
answers
49
views
terra::app() error: 'Not compatible with requested type' when applying function returning numeric vector to SpatRaster in R
I'm working on a function to detect positive and negative events using a time series of cumulative anomalies. The function seems to work fine for vectors and produces the correct number of outputs as ...
2
votes
3
answers
110
views
Open-MP Parallel for (three-dimensional array)
We are working with the following code:
int i, j, k;
for (i = 2; i < n; i++){ // S1
for (j = 3; j < n - 3; j++){ // S2
for (k = 4; k < n - 4; k++){ // S3
A[...
2
votes
0
answers
60
views
Persistent parallel threads in Panda3d, with args at runtime
I'm writing a physics game, and I'm trying to speed up my motion calculations. Every tick of the update cycle, I call an rk4 routine which calls an ODE function 4 times, passing updated values for dt/...
1
vote
0
answers
41
views
Track number of in-use vs. idle workers in Matlab with fmincon
I'm currently in Matlab doing a set of fixed point iterations using fmincon. I use parfor multithreading to do so. However, one of my iterations in the parfor loop goes particularly slow just because ...
2
votes
1
answer
241
views
Why is std::execution::par_unseq slow compared with other parallel options
Sorry I was busy and made a few mistakes. First is that the logics for the various implementations were not the same, and I adjusted accordingly, second is that there is an overflow with float and I ...
0
votes
0
answers
77
views
Adding OpenMP reduction clause to loop inside a function
I have a function that contains an OpenMP-parallelized for loop, which calls a callback at each iteration, similar to this:
template<class Callback>
void iterate(const Callback& callback, ...
1
vote
2
answers
175
views
How to parallel process an apply() function that iterates through rows of data but calls on a list object?
I am attempting to run a calculation on each row of a large dataset using the carcass package. Each row of the dataset contains the values to feed to the function, and a call number for an associated ...
2
votes
0
answers
101
views
Disable Numpy parallelization inside Numba JIT
The problem is illustrated by the following script, which works correctly if MKL is used for linear algebra operations:
from numba import njit, prange
from numpy import random, dot, empty
from ...