You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I do for that algorithms is that creating a fixed number of threads and each thread gets the chunk from 'chuck manager' when each thread need more chunks.
In the algorithm which I'm implementing, the thread have to get more chunks dynamically.
Also, when the thread get a chunk, it should be able to select the position which the chunk is got from between the left end and the right end in the sequence of chunks.
With raw thread, this algorithm can be implemented easily.
But, it seems not the HPX-friendly way.
I want to know what is good way to implement this algorithm in HPX.
The text was updated successfully, but these errors were encountered:
I'd suggest to simply use async_execute(policy.executor(), ...) whenever you need to execute work on a chunk and not to worry about having an 'underlying' thread to explicitly schedule things on. HPX will do that for you.
I'm implementing
parallel::partition
using F&A algorithms illustrated in the paper.(http://www.lsi.upc.edu/~lfrias/research/parpar/parpar.pdf)Existed implementation of F&A algorithms : http://parallelstl.codeplex.com/SourceControl/latest#include/experimental/impl/partition.h
What I do for that algorithms is that creating a fixed number of threads and each thread gets the chunk from 'chuck manager' when each thread need more chunks.
In current, there is
hpx::parallel::static_partitioner
for partitioning the data into several chunks and spawning one chunk of iterations for each available core. (https://github.com/STEllAR-GROUP/hpx/blob/6e078e0/hpx/parallel/util/partitioner.hpp#L43-L46)But,
static_partitioner
is not adjusted to what I do.In the algorithm which I'm implementing, the thread have to get more chunks dynamically.
Also, when the thread get a chunk, it should be able to select the position which the chunk is got from between the left end and the right end in the sequence of chunks.
With raw thread, this algorithm can be implemented easily.
But, it seems not the HPX-friendly way.
I want to know what is good way to implement this algorithm in HPX.
The text was updated successfully, but these errors were encountered: