Skip to content

Instantly share code, notes, and snippets.

@martin-martin
Created August 18, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martin-martin/4ad72550cf45b956cd84e3610010fe42 to your computer and use it in GitHub Desktop.
Save martin-martin/4ad72550cf45b956cd84e3610010fe42 to your computer and use it in GitHub Desktop.
def modify_make_command(arguments, project_path, parent_folder, folder, suffix):
if arguments == config.benchmark.BENCHMARK["HPCG"].url:
for sub_path in Path(project_path.joinpath("apps", parent_folder, folder)):
shell_execute(f"make arch={suffix}", sub_path.parent.as_posix())
if arguments == config.benchmark.BENCHMARK["CLOVERLEAF"].url:
for sub_path in Path(project_path).glob(f"**/**/?akefile"):
shell_execute(
"make COMPILER = GNU MPI_COMPILER = gfortran C_MPI_COMPILER = gcc",
sub_path.parent.as_posix(),
)
# New Version:
{
"HPCG": CleverDict(
{
"url": "https://github.com/hpcg-benchmark/hpcg.git",
"description": "Official HPCG benchmark source code",
"modify_make_command": {
"modify_architecture": yes,
"modify_compiler": no,
}
}
"CLOVERLEAF": CleverDict(
{ # Benchmarks, special make command
"url": "https://github.com/UK-MAC/CloverLeaf.git",
"description": "CloverLeaf, a Lagrangian-Eulerian hydrodynamics mini-application - CloverLeaf is a mini-app that solves the compressible Euler equations on a Cartesian grid, using an explicit, second-order accurate method.",
"modify_make_command": {
"modify_architecture": no,
"modify_compiler": yes,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment