diff options
author | Erik Schnetter <schnetter@gmail.com> | 2011-11-26 10:24:34 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2011-11-29 13:50:15 -0500 |
commit | 954963c1b3dd9252f835f675e59c8a1ff0b471ae (patch) | |
tree | 7e84fb5f73787b65d50b65852ca6a5eb60a25d71 /Tools/CodeGen/Thorn.m | |
parent | 9cc50992ec7b20fcb359c80358a787a0551364fa (diff) |
Support provides/requires statements in the schedule.
Wrap cctk_time in ToReal.
Simplify non-OpenCL vectorised store operations
Diffstat (limited to 'Tools/CodeGen/Thorn.m')
-rw-r--r-- | Tools/CodeGen/Thorn.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m index dfd309a..8731c26 100644 --- a/Tools/CodeGen/Thorn.m +++ b/Tools/CodeGen/Thorn.m @@ -387,6 +387,14 @@ scheduleUnconditionalFunction[spec_] := Map[{"TRIGGERS: ", #, "\n"} &, lookupDefault[spec, TriggerGroups, {}]], + (* TODO: Expect a set of keyword/value pairs instead of a string *) + If[lookupDefault[spec, Tags, ""] != "", + "TAGS: " <> lookup[spec, Tags] <> "\n", + ""], + + Map[{"REQUIRES: ", #, "\n"} &, lookupDefault[spec, RequiredGroups, {}]], + Map[{"PROVIDES: ", #, "\n"} &, lookupDefault[spec, ProvidedGroups, {}]], + (* Insert a storage block for each group we want to allocate storage for *) Map[groupStorage, lookupDefault[spec, StorageGroups, {}]]}, |