Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Wang <[email protected]>
  • Loading branch information
wangvsa committed Sep 11, 2023
1 parent 5b93519 commit 60c9535
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/verifyio/match_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def read_one_mpi_call(self, rank, seq_id, record):
skip, src, rtag, comm, req = False, args[3], args[4], args[5], args[6]
elif func == 'MPI_Wait':
skip, req = False, set([args[0]])
src, rtag = mpi_status_to_src_tag(args[1])
src, rtag = self.mpi_status_to_src_tag(args[1])
elif func == 'MPI_Waitall':
reqs = args[1][1:-1].split(',')
skip, req = False, set(reqs)
Expand All @@ -147,7 +147,7 @@ def read_one_mpi_call(self, rank, seq_id, record):
skip, req, reqflag, tindx = False, reqs, int(args[2]), tind
elif func == 'MPI_Test':
skip, req, reqflag = False, set([args[0]]), int(args[1])
src, rtag = mpi_status_to_src_tag(args[2])
src, rtag = self.mpi_status_to_src_tag(args[2])
elif func == 'MPI_Testall':
reqs = args[1][1:-1].split(',')
skip, req, reqflag = False, set(reqs), int(args[2])
Expand Down Expand Up @@ -227,7 +227,7 @@ def read_one_mpi_call(self, rank, seq_id, record):
else:
return None

def mpi_status_to_src_tag(status_str):
def mpi_status_to_src_tag(self, status_str):
if str(status_str).startswith("["):
return status_str[1:-1].split("_")[0], status_str[1:-1].split("_")[1]
else: # MPI_STATUS_IGNORE
Expand Down

0 comments on commit 60c9535

Please sign in to comment.