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

Refactoring: Renamed MPI_Call to MPICall

parent aa92cbe4
No related branches found
No related tags found
2 merge requests!13Infrasructure patch 1,!12More improvements to Infrastructure
......@@ -3,7 +3,7 @@ from __future__ import annotations
import typing
from scripts.Infrastructure.Instruction import Instruction
from scripts.Infrastructure.MPICall import MPI_Call
from scripts.Infrastructure.MPICall import MPICall
class InstructionBlock:
......@@ -76,7 +76,7 @@ class InstructionBlock:
max_v = "0.0"
for k, v in self.operations.items():
for op in v:
if isinstance(op, MPI_Call):
if isinstance(op, MPICall):
max_v = max(op.get_version(), max_v)
return max_v
......
......@@ -9,13 +9,13 @@ from scripts.Infrastructure.MPIAPIInfo.MPIAPIParameters import get_mpi_version_d
template = """
@staticmethod
def @{FUNC_KEY}@(*args):
return MPI_Call("@{FUNC_NAME}@", OrderedDict(@{PARAM_DICT}@), "@{VERSION}@")
return MPICall("@{FUNC_NAME}@", OrderedDict(@{PARAM_DICT}@), "@{VERSION}@")
"""
file_header="""#! /usr/bin/python3
from collections import OrderedDict
from scripts.Infrastructure.MPICall import MPI_Call
from scripts.Infrastructure.MPICall import MPICall
class MPICallFactory:
......
......@@ -6,7 +6,7 @@ from scripts.Infrastructure.Instruction import Instruction
from scripts.Infrastructure.Variables import ERROR_MARKER_COMMENT
class MPI_Call(Instruction):
class MPICall(Instruction):
@override
def __init__(self, function: str, args: typing.OrderedDict[str, str], version: str):
......
This diff is collapsed.
#! /usr/bin/python3
from scripts.Infrastructure.InstructionBlock import InstructionBlock
from scripts.Infrastructure.MPICall import MPI_Call
from scripts.Infrastructure.MPICall import MPICall
template = """// @{generatedby}@
/* ///////////////////////// The MPI Bug Bench ////////////////////////
......
......@@ -6,7 +6,7 @@ import typing
from scripts.Infrastructure.AllocCall import AllocCall
from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory
from scripts.Infrastructure.InstructionBlock import InstructionBlock
from scripts.Infrastructure.MPICall import MPI_Call
from scripts.Infrastructure.MPICall import MPICall
from scripts.Infrastructure.MPICallFactory import CorrectMPICallFactory, MPICallFactory
from scripts.Infrastructure.Template import TemplateManager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment