ADOL-C: Automatic Differentiation in C/C++ 2.7.3
Loading...
Searching...
No Matches
globaltapevarscl.h
Go to the documentation of this file.
1#ifndef ADOLC_GLOBALTAPEVARSCL_H
2#define ADOLC_GLOBALTAPEVARSCL_H
3
6#include <limits>
7
19#ifdef ADOLC_TRACK_ACTIVITY
21 store, actStore, storeSize, numLives))
22#else
25#endif
26 {};
27
28 ~GlobalTapeVarsCL() = default;
29
32
35
36 void reallocStore(unsigned char type);
41
42 // double store for calc. while taping
43 double *store{nullptr};
44#if defined(ADOLC_TRACK_ACTIVITY)
45 // activity store for tracking while taping
46 char *actStore{nullptr};
47#endif
48 size_t storeSize{0};
49 size_t numLives{0};
50 size_t maxLoc{std::numeric_limits<size_t>::max()};
51
52 // Defaults to the value specified in
53 // usrparms.h. May be overwritten by values
54 // in a local config file .adolcrc.
57 size_t valueBufferSize{0};
59
60 // set to 1 if in an OpenMP parallel region
62 // signals: at least one tape created (0/1)
63 char newTape{0};
66 size_t numparam{0};
67 size_t maxparam{0};
68 double *pStore{nullptr};
70 std::unique_ptr<StoreManager> paramStoreMgrPtr;
71 std::unique_ptr<StoreManager> storeManagerPtr;
72};
73#endif // ADOLC_GLOBALTAPEVARSCL_H
Location allocator that tracks contiguous free blocks.
Definition storemanager.h:174
static size_t get_initialSize()
Definition storemanager.h:117
unsigned int uint
Definition common.h:39
Per-tape active-value stores and location allocators.
Definition globaltapevarscl.h:15
GlobalTapeVarsCL & operator=(GlobalTapeVarsCL &&other) noexcept
void checkInitialStoreSize()
Definition globaltapevarscl.h:37
size_t maxLoc
Definition globaltapevarscl.h:50
~GlobalTapeVarsCL()=default
GlobalTapeVarsCL()
Definition globaltapevarscl.h:16
GlobalTapeVarsCL(const GlobalTapeVarsCL &)=delete
char inParallelRegion
Definition globaltapevarscl.h:61
GlobalTapeVarsCL & operator=(const GlobalTapeVarsCL &)=delete
std::unique_ptr< StoreManager > paramStoreMgrPtr
Definition globaltapevarscl.h:70
uint nominmaxFlag
Definition globaltapevarscl.h:65
size_t valueBufferSize
Definition globaltapevarscl.h:57
size_t maxparam
Definition globaltapevarscl.h:67
size_t numparam
Definition globaltapevarscl.h:66
size_t initialStoreSize
Definition globaltapevarscl.h:69
void reallocStore(unsigned char type)
size_t taylorBufferSize
Definition globaltapevarscl.h:58
char newTape
Definition globaltapevarscl.h:63
size_t operationBufferSize
Definition globaltapevarscl.h:55
size_t storeSize
Definition globaltapevarscl.h:48
double * pStore
Definition globaltapevarscl.h:68
std::unique_ptr< StoreManager > storeManagerPtr
Definition globaltapevarscl.h:71
GlobalTapeVarsCL(GlobalTapeVarsCL &&other) noexcept
double * store
Definition globaltapevarscl.h:43
size_t numLives
Definition globaltapevarscl.h:49
char branchSwitchWarning
Definition globaltapevarscl.h:64
size_t locationBufferSize
Definition globaltapevarscl.h:56
Numeric limits for taped active scalars.
Definition adtb_types.h:1417