diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-11 09:03:24 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-11 09:03:24 +0200 |
commit | 413a73837ec035b69904e5a4b78a35c9f5a0b2d8 (patch) | |
tree | fa55761e709fb810e7e5d2563db56f8175285673 /Tools | |
parent | 64b4f58d0f6a4a57cf8e07a41386bb224ed9ca4a (diff) |
Calculation.m: Disable caching of derivative variables for now
It seems to lead to a performance decrease, and restricts the tile size we can use.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/CodeGen/Calculation.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/CodeGen/Calculation.m b/Tools/CodeGen/Calculation.m index 669e476..6a0e2a3 100644 --- a/Tools/CodeGen/Calculation.m +++ b/Tools/CodeGen/Calculation.m @@ -196,6 +196,7 @@ separateDerivativesInCalculation[calc_] := {derivName -> sepDeriv}]; calc1 = mapReplace[calc1, Schedule, Map[#<>" before "<>lookup[calc,Name] &, lookup[calc,Schedule]]]; calc1 = mapReplace[calc1, Name, lookup[calc,Name]<>"_"<>derivGFName2[sepDeriv]]; + (* calc1 = Append[calc1, CachedVariables -> {sepDeriv[[1]]}]; *) currentGroups = lookup[calc, LocalGroups, {}]; localGroups = Append[currentGroups, {ToString@derivName<>"_group", {derivName}}]; calc1 = mapReplaceAdd[calc1, LocalGroups, localGroups]; |