Boost logo

Boost Users :

Subject: [Boost-users] [graph][parallel] Problem distributed property map synchronization
From: bminano (bminyano_at_[hidden])
Date: 2013-03-08 10:27:33


Hello,

I need help. I have a distributed graph with a distributed property map for
an edge value.
The problem is that the synchronize procedure does not synchronize my ghost
edges values.

I have a loop that reads from the property, synchronizes, modifies its value
and synchronizes it.
What I see is that the value is not being synchronized for the ghost edges.

for (int t = 0; t < 2; t++) {
        myfile<<rank&lt;&lt;&quot;:Time &quot;&lt;&lt;t&lt;&lt;endl;

        BGL_FORALL_VERTICES(v, g, Graph) {
                    for (boost::tie(ei_i,edge_end_i) = in_edges(v, g); ei_i != edge_end_i;
++ei_i) {
                        remote_key_e k(rank, *ei_i);
                        myfile&lt;&lt;&quot;value &quot;&lt;&lt;d_index[source(*ei_i,
g)]&lt;&lt;&quot; -> "<<d_index[target(*ei_i, g)]&lt;&lt;&quot; valor
&quot;&lt;&lt;get(d_ecash, k)&lt;&lt;endl;
                    }
        }

        synchronize(d_ecash);
        BGL_FORALL_VERTICES(v, g, Graph) {
                    for (boost::tie(ei,edge_end) = out_edges(v, g); ei != edge_end; ++ei)
{
                        remote_key_e k(rank, *ei);
                        put(d_ecash, k, t + 1);
                }
        }
              synchronize(d_ecash);
}

Could anyone tell me what I am doing wrong?
I attach the full code if someone want to look at them.

&lt;nabble_a href=&quot;sync.cpp&quot;>sync.cpp

--
View this message in context: http://boost.2283326.n4.nabble.com/graph-parallel-Problem-distributed-property-map-synchronization-tp4643953.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net