Skip to content
Snippets Groups Projects
Commit e6838f6b authored by Emmanuelle Saillard's avatar Emmanuelle Saillard
Browse files

add local concurrency cases

parent aac6f99b
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/python3
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
from scripts.Infrastructure.Instruction import Instruction
from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory
from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv
from scripts.Infrastructure.Template import TemplateManager
from scripts.Infrastructure.TemplateFactory import get_collective_template
class InvalidRankErrorColl(ErrorGenerator):
nbfunc_to_use = ["mpi_ibarrier", "mpi_iallreduce", "mpi_ialltoall", "mpi_ibcast", "mpi_ireduce", "mpi_iscatter", "mpi_igather", "mpi_iscan" ]
def __init__(self):
pass
def get_feature(self):
return ["COLL"]
def generate(self, generate_full_set):
for func_to_use in self.nbfunc_to_use:
tm = get_collective_template(func_to_use)
tm.set_description("LocalConcurrency-"+func_to_use, "Usage of buffer before operation is completed")
conflicting_inst = Instruction("buf[2]=1;")
conflicting_inst.set_has_error()
wait = tm.get_instruction("WAIT", return_list=True)
tm.insert_instruction(conflicting_inst,before_instruction=wait)
yield tm
if not generate_full_set:
return
\ No newline at end of file
...@@ -86,7 +86,6 @@ class InvalidComErrorColl(ErrorGenerator): ...@@ -86,7 +86,6 @@ class InvalidComErrorColl(ErrorGenerator):
yield tm yield tm
# only check for one comm
if not generate_full_set: if not generate_full_set:
return return
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment