Project

General

Profile

Bug #1977

Broadcast on a 2D array section segfaults

Added by Raghavendra Kanakagiri 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
09/11/2018
Due date:
% Done:

0%


Description

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);

secProxy(0).hello();
hello() is called on element 0 (Any element of the section can be accessed through this).

Segmentation fault in 2 use cases:
  1. secProxy.hello();
  2. CkCallback cb(CkIndex_Check::hello(), secProxy);

History

#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.

Also available in: Atom PDF