Skip to content
Snippets Groups Projects
Commit baee8607 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix return type

parent 0fb2f672
Branches
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ def get_global_missmatch(type_1, type_2, count_1, count_2, func_to_use, comm): ...@@ -74,7 +74,7 @@ def get_global_missmatch(type_1, type_2, count_1, count_2, func_to_use, comm):
tm.insert_instruction(c, after_instruction=call) tm.insert_instruction(c, after_instruction=call)
yield tm return tm
def get_correct_case(type_1, count_1, func_to_use, comm): def get_correct_case(type_1, count_1, func_to_use, comm):
...@@ -115,7 +115,7 @@ def get_correct_case(type_1, count_1, func_to_use, comm): ...@@ -115,7 +115,7 @@ def get_correct_case(type_1, count_1, func_to_use, comm):
tm.insert_instruction(c, after_instruction=call) tm.insert_instruction(c, after_instruction=call)
yield tm return tm
def is_combination_compatible(t1, t2, f): def is_combination_compatible(t1, t2, f):
...@@ -187,4 +187,4 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -187,4 +187,4 @@ class InvalidComErrorColl(ErrorGenerator):
if type_1 not in correct_types_checked: if type_1 not in correct_types_checked:
correct_types_checked.add(type_1) correct_types_checked.add(type_1)
yield get_correct_case(type_1, func_to_use, comm) yield get_correct_case(type_1, 1,func_to_use, comm)
...@@ -157,6 +157,8 @@ class DtypeMissmatch(ErrorGenerator): ...@@ -157,6 +157,8 @@ class DtypeMissmatch(ErrorGenerator):
datatype=t.lower(), datatype=t.lower(),
communicator=c)] communicator=c)]
#TODO send type A and recv Type B vs send Type B and recv Type A may lead to unnecessary duplicates
# all possible combinations # all possible combinations
combinations_to_use = [(s, r) for s in important_sends for r in important_recvs if combinations_to_use = [(s, r) for s in important_sends for r in important_recvs if
is_combination_compatible(s, r)] is_combination_compatible(s, r)]
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment