diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-01-16 14:46:17 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-01-16 14:46:17 -0500 |
commit | e0ddb73239c73c6de42a01204194173ce65ebff4 (patch) | |
tree | d0380bec049f7807836d68a0001f2ec492f62d0e /Carpet/LoopControl/src/lc_hill.h | |
parent | 1cddd960d62da42ccd111022f1326740f688b48d (diff) |
LoopControl: Rewrite
Rewrite code in C++.
Remove dependency on GSL.
Modify algorithm; now traverses arrays bottom-up (by splitting the looping region into equal-sized blocks) instead of top-down (splitting the region into a certain number of blocks)
Make multi-threading dynamic
Support SMT (hyper-threading), i.e. threads which share the same cache
Diffstat (limited to 'Carpet/LoopControl/src/lc_hill.h')
-rw-r--r-- | Carpet/LoopControl/src/lc_hill.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Carpet/LoopControl/src/lc_hill.h b/Carpet/LoopControl/src/lc_hill.h deleted file mode 100644 index 7d418314b..000000000 --- a/Carpet/LoopControl/src/lc_hill.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef LC_HILL_H -#define LC_HILL_H - -#include <cctk.h> - -#include "loopcontrol.h" - - - -/* no typedef here; forward declcared in loopcontrol.h */ -struct lc_hill_state_t { - int iteration; - - lc_state_t best; - double best_time; - int have_best; - - int excursion_start; /* -1 if not on an excursion */ - - lc_state_t previous; - double previous_time; - int have_previous; - - lc_state_t state; - double time; -}; - - - -void -lc_hill_init (lc_statset_t * restrict const ls, - lc_state_t * restrict const state); - -void -lc_hill_finish (lc_statset_t * restrict const ls, - lc_stattime_t const * restrict const lt); - -#endif /* #ifndef LC_HILL_H */ |