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

replace int literal with Variable in the test level conditionals

parent 6a8664c2
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,8 @@ class EpochLifeCycleRMA(ErrorGenerator):
tm.insert_instruction(new_instruction=startrmaepoch, after_instruction="STARTRMAEPOCH")
tm.set_description("EpochLifeCycle", "RMA epoch opened twice")
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
for rma_func in ["mpi_get", "mpi_put", "mpi_accumulate"]:
# mix fence with lockall, this should not be done at all
......@@ -70,5 +71,6 @@ class EpochLifeCycleRMA(ErrorGenerator):
tm.insert_instruction(new_instruction=lock, after_instruction="STARTRMAEPOCH")
tm.insert_instruction(new_instruction=unlock, before_instruction="ENDRMAEPOCH")
tm.set_description("EpochLifeCycle", "Mixing fence with lock synchronization")
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
......@@ -240,7 +240,7 @@ class GlobalConcurrencyErrorRMA(ErrorGenerator):
sync_modes = [self.fence, self.lockall, self.lockflush, self.request, self.pscw]
if generate_level <= 2:
if generate_level <= SUFFICIENT_TEST_LEVEL:
# go through all sync modes, but only one access combination per sync mode, fill with fence
combos = itertools.zip_longest(
remote_access_combinations, sync_modes, fillvalue=self.fence)
......
......@@ -253,7 +253,7 @@ class LocalConcurrencyErrorRMA(ErrorGenerator):
# build set of calls based on generate level, for level 1 just a few basic calls,
# for level >= 2 all calls
if generate_level == 1:
if generate_level <= BASIC_TEST_LEVEL:
# only basic calls
local_origin_addr_read = ["mpi_put", "mpi_accumulate"]
local_origin_addr_write = ["mpi_get"]
......@@ -290,7 +290,7 @@ class LocalConcurrencyErrorRMA(ErrorGenerator):
sync_modes = [self.fence, self.lockallflush, self.lockallflushlocal, self.lockflush, self.lockflushlocal, self.lockunlock, self.request, self.pscw]
if generate_level <= 2:
if generate_level <= SUFFICIENT_TEST_LEVEL:
# go through all sync modes, but only one access combination per sync mode, fill with fence
combos = itertools.zip_longest(
local_access_combinations, sync_modes, fillvalue=self.fence)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment