XcalableMP Programming Model and Language
69
Fig. 53 Passing a global argument to a local parameter
7.2 Specification
7.2.1 Initialization
Tool developers can provide the xmpt_initialize function in which they
register a callback for each of the XMPT events of interest, as follows.
C
void xmpt_initialize(...){
xmpt_set_callback(xmpt_event_bcast_begin, callback_bcast_begin);
xmpt_set_callback(xmpt_event_bcast_end, callback_bcast_end);
...
5 }
In the above example, the tool developer implements callbacks
callback_bcast_begin and callback_bcast_end that interact with
his/her tool.
When an XMP program starts execution, the XMP runtime implicitly invokes
xmpt_initialize, if provided, to set up the callbacks.
Précédent

- 77/265

Suivant