Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • coll
  • devel-ES
  • devel-TJ
  • dtypes
  • fix-rma-lockunlock
  • fortran
  • infrasructure-patch-1
  • infrastructure-patch-3
  • infrastructure-patch2
  • instructionblock-lists
  • main
  • mbi
  • merged
  • must-json
  • must-toolcoverage
  • p2p
  • paper_repro
  • parcoach
  • rma
  • toolcoverage
  • tools
  • tools-parallel
  • usertypes
23 results

Target

Select target project
  • hpc-public/mpi-bugbench
1 result
Select Git revision
  • coll
  • devel-ES
  • devel-TJ
  • dtypes
  • fix-rma-lockunlock
  • fortran
  • infrasructure-patch-1
  • infrastructure-patch-3
  • infrastructure-patch2
  • instructionblock-lists
  • main
  • mbi
  • merged
  • must-json
  • must-toolcoverage
  • p2p
  • paper_repro
  • parcoach
  • rma
  • toolcoverage
  • tools
  • tools-parallel
  • usertypes
23 results
Show changes

Commits on Source 3

...@@ -7,7 +7,8 @@ import json ...@@ -7,7 +7,8 @@ import json
from scripts.Infrastructure.MPIAPIInfo.MPIAPIParameters import get_mpi_version_dict from scripts.Infrastructure.MPIAPIInfo.MPIAPIParameters import get_mpi_version_dict
template = """ template = """
def @{FUNC_KEY}@(self, *args): @staticmethod
def @{FUNC_KEY}@(*args):
return MPI_Call("@{FUNC_NAME}@", OrderedDict(@{PARAM_DICT}@), "@{VERSION}@") return MPI_Call("@{FUNC_NAME}@", OrderedDict(@{PARAM_DICT}@), "@{VERSION}@")
""" """
...@@ -18,8 +19,9 @@ from scripts.Infrastructure.MPICall import MPI_Call ...@@ -18,8 +19,9 @@ from scripts.Infrastructure.MPICall import MPI_Call
class MPICallFactory: class MPICallFactory:
def get(self, func: str, *args): @staticmethod
f_to_call = getattr(self, func) def get(func: str, *args):
f_to_call = getattr(MPICallFactory, func)
return f_to_call(*args) return f_to_call(*args)
""" """
...@@ -30,13 +32,15 @@ from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory ...@@ -30,13 +32,15 @@ from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory
class CorrectMPICallFactory: class CorrectMPICallFactory:
def get(self, func: str, *args): @staticmethod
f_to_call = getattr(self, func) def get(func: str):
return f_to_call(*args) f_to_call = getattr(CorrectMPICallFactory, func)
return f_to_call()
""" """
template_correct = """ template_correct = """
def @{FUNC_KEY}@(self): @staticmethod
def @{FUNC_KEY}@():
correct_params = CorrectParameterFactory() correct_params = CorrectParameterFactory()
return MPICallFactory().@{FUNC_KEY}@(@{PARAMS}@) return MPICallFactory().@{FUNC_KEY}@(@{PARAMS}@)
""" """
......
This diff is collapsed.
#! /usr/bin/python3 #! /usr/bin/python3
import os
from scripts.Infrastructure.GeneratorManager import GeneratorManager from scripts.Infrastructure.GeneratorManager import GeneratorManager
if __name__ == "__main__": if __name__ == "__main__":
gencodes_dir = "../gencodes/"
#gm = GeneratorManager("./errors") #gm = GeneratorManager("./errors")
gm = GeneratorManager("./errors/devel") gm = GeneratorManager("./errors/devel")
#gm.generate("../gencodes", try_compile=True, generate_full_set=False) # default # remove all testcases from previous execution (ease of debugging)
gm.generate("../gencodes", try_compile=True, generate_full_set=True, max_mpi_version="3.1") #all cases that can compile for my local mpi installation filelist = [f for f in os.listdir(gencodes_dir) if f.endswith(".c")]
for f in filelist:
os.remove(os.path.join(gencodes_dir, f))
#gm.generate(gencodes_dir, try_compile=True, generate_full_set=False) # default
gm.generate(gencodes_dir, try_compile=True, generate_full_set=True, max_mpi_version="3.1") #all cases that can compile for my local mpi installation
pass pass