> I want to start coding from tomorrow (29-May-2017)(sunday).

Cool!

> This is my first phase plan:
>       Implementing cyclic domain map : That is creating cyclic
> distribution policy for the creating components on different
> localities.The class that takes Component type and the target localities
> using overloads of (hpx::find_here(), hpx::find_all_localities) as a
> template parameters. And creates the instance of component type on all
> localities using parallel for loops as the operation is completely
> independent of each other.
> And other possible overloads are create ' n ' number of components on
> given localities.
>                                        1)  If n < localities.size() ->
> Create components n on the localities (i.e create  5 component  instance
> of type T over 10 localities means - The domain map class creates 5
> component instance on 5 localities (one per each localities). In this case
> the cyclic property does not hold.
>                                        2)  If n > localities.size()  ->
> (i.e create 5 component instance  of type T over 4 localities means - The
> domain map class creates 5 component instance on  4 localities ( one per
> each locality and then again cycles , create an instance in 1 locality
> once again ).
> The class domain maps contains a vector of id's of components - it
> contains the component - id's  of components created under cyclic
> distribution policy.
> And also want to create an iterator over the vector for accessing the
> component instance created.And also want to maintain an unordered map to
> support the functionality of find_owner(). It returns the locality id for
> the given component id.

A distribution_policy is a type which exposes a certain fixed interface. Please 
have a look at the existing distribution policies to see what functions you 
will have to implement. As outlined before, currently those are two groups of 
functions: a) functions for creating components, and b) functions for invoking 
actions. The former (a) is what you should focus on as the latter (b) might get 
removed from the Concept of a distribution policy in the future.

Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu



_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to