All Questions
Tagged with concurrency parallel-processing
793
questions
1
vote
0
answers
76
views
OpenCL flush absurdly slow, seemingly triggered by clEnqueueReleaseGLObjects in OpenCL/OpenGL interop
I'm writing an interactive application which uses OpenCL 1.2 to render each frame and which uses OpenCL-OpenGL interop to copy the frame to an OpenGL texture which is finally rendered via OpenGL. The ...
0
votes
2
answers
135
views
Options to achieve parallel execution in C#
I have a use case where I need to process n number of operations, which involves other I/O operations.
Method 1: Uses ConcurrentBag<T>.
But worried that the I/O operations in the ...
0
votes
0
answers
82
views
Why is my OpenMP based Code not getting any speedup?
I am trying to fill in "valid points" into a vector of vectors and I do it with the use of local vector of vector which I then merge. I also write the time measuring strategy for ...
1
vote
1
answer
100
views
OpenCL 1.2: Global memory consistency surrounding atomic operations?
I'm trying to implement global synchronization in OpenCL 1.2 using atomics and was wondering if there's any way to ensure that reads from different work groups (that provably -- by the logic of the ...
0
votes
0
answers
41
views
How to avoid the joblib's parallel open many files?
EDIT: I have submit a issue on github, in that version I remove the user limit in lsof, and the opened files are much more.
A simplified case as following(Python 3.11.8, joblib 1.4.0):
## lsof.py
from ...
1
vote
1
answer
56
views
Repeatedly calling an API while concurrently processing that data in C#
Looking to figure out where exactly I'm going wrong.
I have a program that queries an API, the API returns data in chunks and will return a response header with a URL to the next chunk of data, if ...
1
vote
1
answer
45
views
FastAPI paralellization vs sequential run [duplicate]
I've been trying to follow this thread to better understand concurrency in fastAPI. In particular, I've seen this comment:
In short, replace time.sleep() with await asyncio.sleep(), then you will ...
1
vote
1
answer
51
views
Parallel programming with Dask in Python/Sage for dynamic programming on a nice tree decomposition?
I am trying to implement an algorithm in Sage/Python for counting graph homomorphisms from a graph G to a graph H, with dynamic programming on a nice tree decomposition.
I have completed this ...
0
votes
0
answers
28
views
Categorizing the terms "Parallel", "Concurrent", "Synchronous" and "Asynchronous" using Venn diagrams
Concurrency, parallelism, synchronous, and asynchronous are terms that I have come across at various places but have never quite fully understood the true distinction between them. I have seen all ...
1
vote
1
answer
183
views
How to parallelize SELECT and DELETE?
In PostgreSQL I have to fetch ids in small batches and delete them at same time, so that no 2 clients will fetch same ids.
Sadly, DELETE does not support LIMIT, so I came up with this query:
DELETE ...
0
votes
0
answers
9
views
Spawning multiple celery tasks dynamically [duplicate]
I have a celery tasks that generates a list of items, specifically a list of slices from an image, and I want to be able to start a task to process each of the generated slices. Assume I have ...
0
votes
0
answers
33
views
Is it possible for a Concurrent queue to perform 120 billions requests (enq/deql per second on rtx 4090
I am currently working on concurrent queue. Whenever I ran Broker queue from their source code it shows it could execute 120 billions requests per seconds. This number looks so unbelievable to me.
I ...
0
votes
1
answer
50
views
Not possible to run subset of targets in parallel with Gnu Make 4.3 (MinGW-w64 port)
Consider the following makefile:
.DEFAULT_GOAL := all
.PHONY: all
all: target0 target1 target2
# This line makes all targets run serially
#.NOTPARALLEL: target0
.PHONY: target0
target0:
@python ...
0
votes
0
answers
72
views
How to properly design this concurrent execution
Context
python 3.11
I have an PysimpleGUI app that I use for stream-like processing of audio. With two main functions:
_start_adding which is a while True loop that records audio for 5 seconds (I/O ...
1
vote
1
answer
59
views
Can't use enums in CompareExchange. (The type enum must be a reference type in order to use it in CompareExchange) [duplicate]
To my surprise I can't use CompareExcahnge with enums. Even Java allows it, is there a way to fix it or should I try something else in the code below? Pretty sure it's a bug because my code seems ...