From 088d7a5911c4f5713c2edf684ea0b4c1a23211be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de>
Date: Sun, 10 Feb 2019 22:09:39 +0100
Subject: [PATCH] [skip ci][WIP] Apply trasformation

Decision about loop order should be done with autotuning in the end.
---
 python/dune/codegen/sumfact/realization.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/dune/codegen/sumfact/realization.py b/python/dune/codegen/sumfact/realization.py
index 14cd0b1d..5317268f 100644
--- a/python/dune/codegen/sumfact/realization.py
+++ b/python/dune/codegen/sumfact/realization.py
@@ -278,6 +278,10 @@ def realize_sumfact_kernel_function(sf):
                                               )
                                   })
 
+    # Register kernel transformations
+    from dune.codegen.sumfact.transformations import reorder_loops_in_tensor_contraction
+    transform(reorder_loops_in_tensor_contraction, 'lkji')
+
     # Construct a loopy kernel object
     from dune.codegen.pdelab.localoperator import extract_kernel_from_cache
     args = ("const char* buffer0", "const char* buffer1") + sf.interface.signature_args
-- 
GitLab