diff --git a/scripts/errors/rma/EpochLifeCycle.py b/scripts/errors/rma/EpochLifeCycle.py index 789913e7bd912582a4bee01ba0175195e6d73cac..8b390c557cba9707173606777601443e19d74a16 100644 --- a/scripts/errors/rma/EpochLifeCycle.py +++ b/scripts/errors/rma/EpochLifeCycle.py @@ -1,4 +1,5 @@ #! /usr/bin/python3 +from __future__ import annotations from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator @@ -18,7 +19,7 @@ class EpochLifeCycleRMA(ErrorGenerator): def get_feature(self): return ["RMA"] - def generate(self, generate_level): + def generate(self, generate_level, real_world_score_table): for sync_mode in ["fence", "winlockall", "winlock"]: for rma_func in ["mpi_get", "mpi_put", "mpi_accumulate"]: # epoch is not closed diff --git a/scripts/errors/rma/GlobalConcurrency.py b/scripts/errors/rma/GlobalConcurrency.py index dd4a39f7e827530d60e5630376fd1493e9cddd78..94d48d470ecd64c03050d518922e30e9397adcea 100644 --- a/scripts/errors/rma/GlobalConcurrency.py +++ b/scripts/errors/rma/GlobalConcurrency.py @@ -1,4 +1,6 @@ #! /usr/bin/python3 +from __future__ import annotations + from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator diff --git a/scripts/errors/rma/InvalidBuffer.py b/scripts/errors/rma/InvalidBuffer.py index 77ff11daedc5e09d40ecda426b4065f09d200c57..c97a25315d2ef9ce263bb5aa2472fd8614775f6b 100644 --- a/scripts/errors/rma/InvalidBuffer.py +++ b/scripts/errors/rma/InvalidBuffer.py @@ -1,4 +1,5 @@ #! /usr/bin/python3 +from __future__ import annotations from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator @@ -16,7 +17,7 @@ class InvalidBufferErrorRMA(ErrorGenerator): def get_feature(self): return ["RMA"] - def generate(self, generate_level): + def generate(self, generate_level, real_world_score_table): rma_funcs = ["mpi_get", "mpi_rget", "mpi_put", "mpi_rput", "mpi_accumulate", "mpi_raccumulate", "mpi_get_accumulate", "mpi_rget_accumulate", "mpi_fetch_and_op", "mpi_compare_and_swap"] diff --git a/scripts/errors/rma/InvalidDataType.py b/scripts/errors/rma/InvalidDataType.py index 7d53f364bf2e93a14dd83aa2210c9f013a7dc07d..d8496e755044353b87246270dee3252c8a3d25bd 100644 --- a/scripts/errors/rma/InvalidDataType.py +++ b/scripts/errors/rma/InvalidDataType.py @@ -1,4 +1,5 @@ #! /usr/bin/python3 +from __future__ import annotations from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator @@ -15,7 +16,7 @@ class InvalidDatatypeErrorRMA(ErrorGenerator): def get_feature(self): return ["RMA"] - def generate(self, generate_level): + def generate(self, generate_level, real_world_score_table): rma_funcs = [] if generate_level <= BASIC_TEST_LEVEL: rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"] diff --git a/scripts/errors/rma/InvalidRank.py b/scripts/errors/rma/InvalidRank.py index 4ffe6e10df92100a84e7efb0c050c067ba51b4d0..6890552bea14be7173a9279c61d0d49dc5b7382a 100644 --- a/scripts/errors/rma/InvalidRank.py +++ b/scripts/errors/rma/InvalidRank.py @@ -1,4 +1,5 @@ #! /usr/bin/python3 +from __future__ import annotations from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator @@ -17,7 +18,7 @@ class InvalidRankErrorRMA(ErrorGenerator): def get_feature(self): return ["RMA"] - def generate(self, generate_level): + def generate(self, generate_level, real_world_score_table): rma_funcs = [] if generate_level <= BASIC_TEST_LEVEL: rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"] diff --git a/scripts/errors/rma/InvalidWin.py b/scripts/errors/rma/InvalidWin.py index d7a725f42c432a3d67be20491589fd21aa5d2c22..b520ca0cc16fa6b5038229a22566d27adbd9ca97 100644 --- a/scripts/errors/rma/InvalidWin.py +++ b/scripts/errors/rma/InvalidWin.py @@ -1,4 +1,5 @@ #! /usr/bin/python3 +from __future__ import annotations from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator @@ -17,7 +18,7 @@ class InvalidWinErrorRMA(ErrorGenerator): def get_feature(self): return ["RMA"] - def generate(self, generate_level): + def generate(self, generate_level, real_world_score_table): tm = get_rma_template() tm.remove_instruction("RMA_WIN_ALLOC") # remove window allocation # opening epoch on non-initialized window is the actual error @@ -28,7 +29,7 @@ class InvalidWinErrorRMA(ErrorGenerator): # free window too early tm = get_rma_template() - win_free_early = Instruction(f"MPI_Win_free(&{CorrectParameterFactory().get("win")});") + win_free_early = Instruction(f"MPI_Win_free(&{CorrectParameterFactory().get('win')});") win_free_early.set_has_error() tm.insert_instruction(new_instruction=win_free_early, before_instruction="STARTRMAEPOCH") diff --git a/scripts/errors/rma/LocalConcurrency.py b/scripts/errors/rma/LocalConcurrency.py index 606a7c9fbc43a933597f70a3d8db5bc155503838..4ba1bf025a79d229770491a3bc12075365cded38 100644 --- a/scripts/errors/rma/LocalConcurrency.py +++ b/scripts/errors/rma/LocalConcurrency.py @@ -1,4 +1,6 @@ #! /usr/bin/python3 +from __future__ import annotations + from scripts.Infrastructure.Variables import * from scripts.Infrastructure.ErrorGenerator import ErrorGenerator