Broadcast on a 2D array section segfaults
Segmentation fault when a section created using 2D array elements is either used in creating a callback or used for broadcast.
secProxy = CProxySection_Check::ckNew(checkArray.ckGetArrayID(), 0, numchares - 2, 1, 0, numchares - 2, 1);
hello() is called on element 0 (Any element of the section can be accessed through this).
CkCallback cb(CkIndex_Check::hello(), secProxy);
#1 Updated by Raghavendra Kanakagiri 10 months ago
- Status changed from New to Closed
CkMulticast library needs to be used for a section broadcast.
A message inherited from CkMcastBaseMsg needs to be inherited and sent through the broadcast call.
This is noted in Section 14.2.1 of the manual though when citing an example in 14.2 the explicit mention of the CkMcastBaseMsg as a parameter would be good.
Checked for 2D and 3D arrays, and works as expected.