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

added the different generation levels back in

parent a0eda710
Branches
No related tags found
No related merge requests found
...@@ -157,20 +157,24 @@ class DtypeMissmatch(ErrorGenerator): ...@@ -157,20 +157,24 @@ class DtypeMissmatch(ErrorGenerator):
datatype=t.lower(), datatype=t.lower(),
communicator=c)] communicator=c)]
print("number of important recvs:")
print(len(important_recvs))
print("number of important sends:")
print(len(important_sends))
# 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)]
# "re-format" # "re-format"
combinations_to_use = [(t1, t2, s, r, c) for (t1, s, c), (t2, r, _) in combinations_to_use] combinations_to_use = [(t1, t2, s, r, c) for (t1, s, c), (t2, r, _) in combinations_to_use]
print("combinations:") if generate_level == BASIC_TEST_LEVEL:
print(len(combinations_to_use)) combinations_to_use = combinations_to_use[0:1]
if generate_level == SUFFICIENT_TEST_LEVEL:
types_checked = set()
combinations_to_use_filtered = []
for (t1, t2, s, r, c) in combinations_to_use:
if t1 not in types_checked and t2 not in types_checked:
types_checked.add(t1)
types_checked.add(t2)
combinations_to_use_filtered.append((t1, t2, s, r, c))
combinations_to_use = combinations_to_use_filtered
correct_types_checked = set() correct_types_checked = set()
for type_1, type_2, send_func, recv_func, comm in combinations_to_use: for type_1, type_2, send_func, recv_func, comm in combinations_to_use:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment