Commits

Jay Barra  committed 9c1f545

mpe basic calls

  • Participants
  • Parent commits 3801ffa

Comments (0)

Files changed (1)

File PSO/mpiNode.cpp

 #include "mpiNode.h"
+//-------------------------------------------------
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 	char* pcMessage = (char*)malloc(1024);
 	char* pcStatus  = (char*)malloc(1024);
 	int iSource;
+	int event1a, event1b;
+	int event2a, event2b;
+	
+	MPI_Status status;
 	
-	MPI_Status status;		
+	myStatus = MPE_Log_get_state_eventIDs(&event1a, &event1b);
 	
 	m_ID     = MPI::COMM_WORLD.Get_rank();
 	m_bRoot  = (m_ID == 0);
 		printf("Node initialization complete...\n");
 		printf("%i Nodes Registered for work...\n", m_iNodes);
 		printf("*********************************************************\n");
+
+		MPE_Describe_state(event1a, event1b, "Root", "red");
+		MPE_Describe_state(event2a, event2b, "worker", "green");
 	}
 	free(pcMessage);
 	free(pcStatus);