Skip to content
Snippets Groups Projects

Infrastructure: Type Hints, Instruction class and lists of instructions

1 file
+ 5
11
Compare changes
  • Side-by-side
  • Inline
@@ -18,6 +18,7 @@ from scripts.Infrastructure.Variables import ERROR_MARKER_COMMENT
from typing import Tuple, List
class LocalConcurrencyErrorRMA(ErrorGenerator):
local_origin_addr_write = ["mpi_get", "mpi_rget"]
local_origin_addr_read = [
@@ -88,15 +89,8 @@ class LocalConcurrencyErrorRMA(ErrorGenerator):
tm.register_instruction_block(alloc)
if hasconflict:
if isinstance(op1.get_operation(kind=0, index=-1), MPI_Call):
op1.get_operation(kind=0, index=-1).set_has_error()
else:
op1.replace_operation(op1.get_operation(kind=0, index=-1) + ERROR_MARKER_COMMENT, 0, 0)
if isinstance(op2.get_operation(kind=0, index=-1), MPI_Call):
op2.get_operation(kind=0, index=-1).set_has_error()
else:
op2.replace_operation(op2.get_operation(kind=0, index=-1) + ERROR_MARKER_COMMENT, 0, 0)
op1.get_operation(kind=0, index=-1).set_has_error()
op2.get_operation(kind=0, index=-1).set_has_error()
# fuse instructions blocks
# combined_ops = InstructionBlock("COMBINED")
@@ -106,7 +100,7 @@ class LocalConcurrencyErrorRMA(ErrorGenerator):
tm.register_instruction_block(op2)
tm.set_description(
("LocalConcurrency" if hasconflict else "Correct") +
("LocalConcurrency" if hasconflict else "Correct") +
"-"
+ op1.name
+ "_"
@@ -114,7 +108,7 @@ class LocalConcurrencyErrorRMA(ErrorGenerator):
"full description",
)
yield tm
# get RMA call
# rmaop = get_rma_call(function_to_check, 0)
Loading