From 720299232b736d0bb156cb619e817ff6a92ff044 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 21 Nov 2016 13:48:51 +0100 Subject: [PATCH] Adjust test suite to test vectorization --- python/dune/perftool/options.py | 1 + test/sumfact/mass/mass.mini | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python/dune/perftool/options.py b/python/dune/perftool/options.py index 4b4189f9..b294fbb1 100644 --- a/python/dune/perftool/options.py +++ b/python/dune/perftool/options.py @@ -43,6 +43,7 @@ def get_form_compiler_arguments(): # TODO at some point this help description should be updated parser.add_argument("--sumfact", action="store_true", help="Use sumfactorization") parser.add_argument("--sumfact-alignment", type=int, help="Alignment used in sumfactorization", default=64) + parser.add_argument("--vectorize", action="store_true", help="whether to generate code with explicit vectorization") # Modify the positional argument to not be a list args = vars(parser.parse_args()) diff --git a/test/sumfact/mass/mass.mini b/test/sumfact/mass/mass.mini index acab6ddc..c8729bea 100644 --- a/test/sumfact/mass/mass.mini +++ b/test/sumfact/mass/mass.mini @@ -1,5 +1,8 @@ __name = sumfact_mass_{__exec_suffix} -__exec_suffix = numdiff, symdiff | expand num +__exec_suffix = {diff_suffix}_{vec_suffix} + +diff_suffix = numdiff, symdiff | expand num +vec_suffix = vec, nonvec | expand vec cells = 1 1 extension = 1. 1. @@ -10,4 +13,5 @@ extension = vtu [formcompiler] numerical_jacobian = 1, 0 | expand num +vectorize = 1, 0 | expand vec sumfact = 1 -- GitLab