This section assumes you have installed CODES with Cortex and Python enabled, as described here.
If you want to generate the MPI events from a Python script instead of reading them from a DUMPI trace, do as follows.
Preparing configuration files
Follow the same procedure as here (don't use the bash script to generate
the allocation file since you don't have traces to work with. Generate the allocation file manually.)
Prepare a Python script to generate the MPI events
An example of such a script:
importcortexdefGenerateEvents(thread):print"Generating events for rank ",threadifthread==0:cortex.MPI_Send(thread,count=1,datatype=4,dest=1,tag=1234,comm=2)ifthread==1:cortex.MPI_Recv(thread,count=1,datatype=4,source=0,tag=1234,comm=2,status=cortex.MPI_Status())
Call this script MyGenerator.py.
Run your experiment
The following script should help you automatize the run: