From 4788dd8e2efc2f3957616f39df8785e500d2c0f3 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 12 Feb 2025 14:53:57 +0000 Subject: [PATCH] More states in packet progression for GPU non aware MPI --- Grid/communicator/SharedMemory.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Grid/communicator/SharedMemory.h b/Grid/communicator/SharedMemory.h index 1a389322..f8099a1d 100644 --- a/Grid/communicator/SharedMemory.h +++ b/Grid/communicator/SharedMemory.h @@ -50,7 +50,21 @@ typedef MPI_Request MpiCommsRequest_t; #ifdef ACCELERATOR_AWARE_MPI typedef MPI_Request CommsRequest_t; #else -enum PacketType_t { InterNodeXmit, InterNodeRecv, IntraNodeXmit, IntraNodeRecv, InterNodeXmitISend, InterNodeReceiveHtoD }; +/* + * Enable state transitions as each packet flows. + */ +enum PacketType_t { + FaceGather, + InterNodeXmit, + InterNodeRecv, + IntraNodeXmit, + IntraNodeRecv, + InterNodeXmitISend, + InterNodeReceiveHtoD +}; +/* + *Package arguments needed for various actions along packet flow + */ typedef struct { PacketType_t PacketType; void *host_buf;