Konstantin,

 

This is a bug in HPX (see #1596). I committed a fix to the branch fixing_1596, 
please verify whether this solves your problem and report back. If everything 
is fine we’ll merge the fix over to master.

 

Thanks!

Regards Hartmut

---------------

 <http://boost-spirit.com> http://boost-spirit.com

 <http://stellar.cct.lsu.edu> http://stellar.cct.lsu.edu

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Konstantin 
Kronfeldner
Sent: Monday, June 8, 2015 11:35 AM
To: [email protected]
Subject: [hpx-users] Registering multiple gids with same global name

 

Hello all, 

 

I've run into some issues with the registration of global ids with global names.

I'm working with the latest hpx trunk. 

 

I have to create several instances of server component objects, which then have 
to be found by client objects.

At the time of creation of the server components there are no client objects 
yet, as they are supposed to register while the simulation is running.

In order to find the gids of the server components, I wanted to register them 
under a global base name using hpx::register_id_with_basename(), and retrieve 
them with hpx::find_all_ids_from_basename(). Looking at those functions, I 
thought that multiple ids with the same name should be possible. The 
registration of these gids seems to work fine, as the return value is always 
true.

 

But when retrieving those objects, I ran into several problems. 

- I don't know the exact number of server objects that will be created but 
hpx::find_all_ids_from_basename() expects me to know the expected number 
(Though, this might be solvable in another way, as there *should* be as many of 
them as there are localities.)

- When trying to use f.get() on anything but the first element in the vector 
returned by hpx::find_all_ids_from_basename() the thread doesn't return.

 

I was hoping you could tell me what I'm doing wrong, or if there is a better 
solution to this problem.

I've attached a minimal example of my code. 

 

Thank you very much for your help.

 

Regards, Konstantin

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

Reply via email to