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

update rma cases to work with infrastructure

parent 3a2c8658
Branches
No related tags found
No related merge requests found
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
...@@ -18,7 +19,7 @@ class EpochLifeCycleRMA(ErrorGenerator): ...@@ -18,7 +19,7 @@ class EpochLifeCycleRMA(ErrorGenerator):
def get_feature(self): def get_feature(self):
return ["RMA"] return ["RMA"]
def generate(self, generate_level): def generate(self, generate_level, real_world_score_table):
for sync_mode in ["fence", "winlockall", "winlock"]: for sync_mode in ["fence", "winlockall", "winlock"]:
for rma_func in ["mpi_get", "mpi_put", "mpi_accumulate"]: for rma_func in ["mpi_get", "mpi_put", "mpi_accumulate"]:
# epoch is not closed # epoch is not closed
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
...@@ -16,7 +17,7 @@ class InvalidBufferErrorRMA(ErrorGenerator): ...@@ -16,7 +17,7 @@ class InvalidBufferErrorRMA(ErrorGenerator):
def get_feature(self): def get_feature(self):
return ["RMA"] 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", 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"] "mpi_get_accumulate", "mpi_rget_accumulate", "mpi_fetch_and_op", "mpi_compare_and_swap"]
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
...@@ -15,7 +16,7 @@ class InvalidDatatypeErrorRMA(ErrorGenerator): ...@@ -15,7 +16,7 @@ class InvalidDatatypeErrorRMA(ErrorGenerator):
def get_feature(self): def get_feature(self):
return ["RMA"] return ["RMA"]
def generate(self, generate_level): def generate(self, generate_level, real_world_score_table):
rma_funcs = [] rma_funcs = []
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"] rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"]
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
...@@ -17,7 +18,7 @@ class InvalidRankErrorRMA(ErrorGenerator): ...@@ -17,7 +18,7 @@ class InvalidRankErrorRMA(ErrorGenerator):
def get_feature(self): def get_feature(self):
return ["RMA"] return ["RMA"]
def generate(self, generate_level): def generate(self, generate_level, real_world_score_table):
rma_funcs = [] rma_funcs = []
if generate_level <= BASIC_TEST_LEVEL: if generate_level <= BASIC_TEST_LEVEL:
rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"] rma_funcs = ["mpi_get", "mpi_put", "mpi_accumulate"]
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
...@@ -17,7 +18,7 @@ class InvalidWinErrorRMA(ErrorGenerator): ...@@ -17,7 +18,7 @@ class InvalidWinErrorRMA(ErrorGenerator):
def get_feature(self): def get_feature(self):
return ["RMA"] return ["RMA"]
def generate(self, generate_level): def generate(self, generate_level, real_world_score_table):
tm = get_rma_template() tm = get_rma_template()
tm.remove_instruction("RMA_WIN_ALLOC") # remove window allocation tm.remove_instruction("RMA_WIN_ALLOC") # remove window allocation
# opening epoch on non-initialized window is the actual error # opening epoch on non-initialized window is the actual error
...@@ -28,7 +29,7 @@ class InvalidWinErrorRMA(ErrorGenerator): ...@@ -28,7 +29,7 @@ class InvalidWinErrorRMA(ErrorGenerator):
# free window too early # free window too early
tm = get_rma_template() 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() win_free_early.set_has_error()
tm.insert_instruction(new_instruction=win_free_early, before_instruction="STARTRMAEPOCH") tm.insert_instruction(new_instruction=win_free_early, before_instruction="STARTRMAEPOCH")
......
#! /usr/bin/python3 #! /usr/bin/python3
from __future__ import annotations
from scripts.Infrastructure.Variables import * from scripts.Infrastructure.Variables import *
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment