@@ -58,10 +58,10 @@ class WCCOptContext : public grape::VoidContext<FRAG_T> {
58
58
if (frag.fid () == 0 ) {
59
59
messages.InitBuffer (
60
60
0 , (frag.GetTotalVerticesNum () - frag.InnerVertices ().size ()) *
61
- sizeof (offset_t ) * 2 * 1.5 );
61
+ sizeof (offset_t ) * 2 * 2 );
62
62
} else {
63
- messages.InitBuffer (
64
- frag. InnerVertices (). size () * sizeof ( offset_t ) * 2 * 1.5 , 0 );
63
+ messages.InitBuffer (frag. Vertices (). size () * sizeof ( offset_t ) * 2 * 1.5 ,
64
+ 0 );
65
65
}
66
66
}
67
67
@@ -118,6 +118,7 @@ class WCCOpt : public GPUAppBase<FRAG_T, WCCOptContext<FRAG_T>>,
118
118
auto d_coo = ctx.coo_frag ->DeviceObject ();
119
119
auto vertices = frag.Vertices ();
120
120
auto iv = frag.InnerVertices ();
121
+ auto av = frag.Vertices ();
121
122
auto dev_mm = messages.DeviceObject ();
122
123
auto * d_parents = thrust::raw_pointer_cast (ctx.parents .data ());
123
124
auto & stream = messages.stream ();
@@ -200,7 +201,7 @@ class WCCOpt : public GPUAppBase<FRAG_T, WCCOptContext<FRAG_T>>,
200
201
}
201
202
202
203
if (frag.fid () > 0 ) {
203
- WorkSourceRange<vertex_t > ws_in (iv .begin (), iv .size ());
204
+ WorkSourceRange<vertex_t > ws_in (av .begin (), av .size ());
204
205
205
206
ForEach (stream, ws_in, [=] __device__ (vertex_t v) mutable {
206
207
auto offset = vertex2offset (v);
0 commit comments