ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.mpi.MpiScatterGatherLoop");

(.lara)
import clava.mpi.MpiScatterGatherLoop;

MpiScatterGatherLoop

Constructor

MpiScatterGatherLoop

new MpiScatterGatherLoop()

Applies an MPI scatter-gather strategy to loops.


Static Members

_MpiInit

_MpiInit(argc, argv, rank, numTasks, numWorkers, mpiWorker)

Parameters

argc: unknown
argv: unknown
rank: unknown
numTasks: unknown
numWorkers: unknown
mpiWorker: unknown

_MpiMaster

_MpiMaster(numWorkers, numIterations, masterSend, masterReceive, status)

Parameters

numWorkers: unknown
numIterations: unknown
masterSend: unknown
masterReceive: unknown
status: unknown

_MpiWorker

_MpiWorker(functionName, status, numElems, receiveData, outputDecl, loop, sendData)

Parameters

functionName: unknown
status: unknown
numElems: unknown
receiveData: unknown
outputDecl: unknown
loop: unknown
sendData: unknown

Instance Members

_addMpiInit

_addMpiInit($mainFunction)

Parameters

$mainFunction: unknown

_addVariable

_addVariable(varName, accessPattern, namesArray, accessesArray)

Parameters

varName: unknown
accessPattern: unknown
namesArray: unknown
accessesArray: unknown

_buildMpiWorker

_buildMpiWorker()

_getWorkerLoopCode

_getWorkerLoopCode()

_replaceLoop

_replaceLoop()

PRIVATE SECTION


addInput

addInput(varName, accessPattern)

Parameters

varName: unknown
accessPattern: unknown

addOutput

addOutput(varName, accessPattern)

Parameters

varName: unknown
accessPattern: unknown

constructor

constructor($loop)

Parameters

$loop: unknown

execute

execute()

Adapts code to use the MPI strategy.