aboutsummaryrefslogtreecommitdiff
path: root/Carpet/LoopControl/interface.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-05-26 16:32:43 -0400
committerErik Schnetter <schnetter@gmail.com>2013-05-26 16:32:43 -0400
commitcce526ef043dda6115818e54120e8d1410d2d7c5 (patch)
tree112be435032bd827ec66fe191a07d7d40e70e87f /Carpet/LoopControl/interface.ccl
parent9791222a06c996805b3509be67f30aa731fcae10 (diff)
LoopControl: Implement automatic performance improvements
Redesigned internal data structures. This touches many parts of the code. Keep statistics about past loop iterations. Output statistics when terminating. Use these statistics to dynamically choose looping parameters. Allow disabling this feature, e.g. for benchmarks.
Diffstat (limited to 'Carpet/LoopControl/interface.ccl')
-rw-r--r--Carpet/LoopControl/interface.ccl3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/LoopControl/interface.ccl b/Carpet/LoopControl/interface.ccl
index c05c6f843..85173c162 100644
--- a/Carpet/LoopControl/interface.ccl
+++ b/Carpet/LoopControl/interface.ccl
@@ -18,3 +18,6 @@ CCTK_INT FUNCTION GetCacheInfo1(CCTK_INT ARRAY OUT linesizes, \
CCTK_INT ARRAY OUT strides, \
CCTK_INT IN max_num_cache_levels)
USES FUNCTION GetCacheInfo1
+
+CCTK_INT FUNCTION IO_TruncateOutputFiles(CCTK_POINTER_TO_CONST IN cctkGH)
+REQUIRES FUNCTION IO_TruncateOutputFiles