Skip to content
Snippets Groups Projects

P2P

Open
Jammer, Timrequested to merge
p2p into main
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -32,6 +32,10 @@ class UnmatchedP2Pcall(ErrorGenerator):
@@ -32,6 +32,10 @@ class UnmatchedP2Pcall(ErrorGenerator):
tm = get_send_recv_template(send_func, recv_func)
tm = get_send_recv_template(send_func, recv_func)
 
tm.set_description("Correct-" + func_to_check,
 
"correct message exchange")
 
yield tm
 
tm.set_description("CallOrdering-unmatched-" + func_to_check,
tm.set_description("CallOrdering-unmatched-" + func_to_check,
"The %s does not have a counterpart" % ("receive" if check_receive else "send"))
"The %s does not have a counterpart" % ("receive" if check_receive else "send"))
@@ -43,7 +47,7 @@ class UnmatchedP2Pcall(ErrorGenerator):
@@ -43,7 +47,7 @@ class UnmatchedP2Pcall(ErrorGenerator):
kind = 0
kind = 0
if check_receive:
if check_receive:
kind = 1
kind = 1
# comm calls and the correcponding wait calls
# comm calls and the corresponding wait calls
for call in calls + tm.get_instruction(identifier="WAIT", return_list=True):
for call in calls + tm.get_instruction(identifier="WAIT", return_list=True):
if call.get_rank_executing() == kind:
if call.get_rank_executing() == kind:
tm.remove_instruction(instruction=call)
tm.remove_instruction(instruction=call)
Loading