21,924 questions
Score of 0
0 answers
59 views
Future.apply broke parallelism
I have a process in R using knitr. I need to run a bootstrap and perform a large data analysis, so I use future.apply. I run the process on Windows.
In the Task Manager, I can see that the first and ...
Score of 2
0 answers
60 views
How can I leverage torch.cuda.Stream() to control CUDA streams for parallel task execution?
I have prepared test code that defines three functions to compare matrix computation elapsed time under PyTorch’s default CUDA stream versus custom user-created streams. The three functions differ in ...
Advice
1
vote
4
replies
120
views
In Fortran, what is a short working example of parallel programming with communicating threads?
(UPDATE: I found one answer, see code at end)
Fortran has native built-in parallel features. I'm trying to use them in a program that does a search for a solution.
program do_co
implicit none
real(...
Score of 1
1 answer
82 views
Cats Effect: shared `mutable.Map` stays empty after `parUnorderedTraverse`
I'm trying to accumulate items into a single shared container from many parallel IO fibers. My container wraps a mutable.Map. After running 100 inserts via parUnorderedTraverse, I expect the map to ...
Score of 6
3 answers
434 views
Running purrr functionals in parallel: imap
I have a function inside a larger script that does some clustered resampling, and that uses imap to run, as in the code below:
library(tibble)
library(purrr)
library(dplyr)
n_ids <- 500
# Total ...
Advice
1
vote
2
replies
105
views
Does Google Cloud Storage do parallelisation by itself?
Currently, I have a system that transcribes and summarises audio files with the Gemini API. Current configurations are those files that need to be processed, uploaded to DynamoDB, and then, through ...
Score of 1
0 answers
69 views
How can I optimize test choices in JUnit5 parallel test execution?
We're running a test pipeline with JUnit 5 and settings
junit.jupiter.execution.parallel.enabled=true
junit.jupiter.execution.parallel.mode.default=same_thread
junit.jupiter.execution.parallel.mode....
Score of -1
1 answer
92 views
Next.js parallel routes [closed]
I am using a parallel route in Next.js to have a header either with or without link functionality regarding the path. But when I build it, this is the output and I absolutely don't understand what it ...
Best practices
1
vote
1
replies
104
views
Best practice for concurrent HTTP requests in Laravel when scraping multiple URLs
I need to fetch data from a list of URLs concurrently in Laravel (PHP). The use case is scraping results from multiple endpoints — one request per URL — and I want to do it as fast as possible without ...
Score of 0
1 answer
77 views
Does jit compiler parallelize list comprehension with independent statements in `jax`
I need to apply a jax function to a sequence of arrays of varying sizes. For example:
import jax.numpy as jnp
arrs = [jnp.array([1., 2.]),
jnp.array([6., 7., 8.]),
jnp.array([12.])]
...
Score of 2
0 answers
160 views
Create multiple EntityManagerFactories in parallel [closed]
I have to create ~150 EntityManagerFactories.
I'm using
hibernate-commons-annotations-5.1.2.Final
hibernate-core-5.6.14.Final
hibernate-envers-5.6.14.Final
hibernate-search-backend-elasticsearch-6.1.8....
Best practices
2
votes
7
replies
170
views
How to add many fractions together as fast as possible?
This is related to this question.
Basically, I need to add many fractions together. Seems simple enough? Except it isn't simple.
I can't use fractions.Fraction class, that thing stupidly does fraction ...
Advice
0
votes
2
replies
34
views
Parallelized Access to TypedTuplestore data structure in PostgreSQL
I am working on a C-UDF for Postgres, where i would like to somehow read from a passed Typed-Tuplestore in parallel. Either pthreads or worker-processes is fine, as long as the access isn't combined ...
Advice
2
votes
6
replies
97
views
C++ containers and omp parallel
So I have an algorithm that gets a set of objects and computes a next set of objects. The code below is a toy version of the real code for brevity. The next snip illustrates the theme of the program ...
Score of 1
2 answers
92 views
Removing unsafe pointer and make vector element comparison parallel
I have a little parallelizing question.
I want to implement a trait function for A, below, which iterates over its Vec<B> field, and for each elements looks for all the following elements, and ...