Created
August 18, 2021 15:04
-
-
Save martin-martin/4ad72550cf45b956cd84e3610010fe42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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