|
ttg 1.0.0-alpha
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
|
#include <env.h>
Public Member Functions | |
| ~Env () | |
| Env (const Env &)=delete | |
| Env (Env &&)=delete | |
| Env & | operator= (const Env &)=delete |
| Env & | operator= (Env &&)=delete |
| auto & | pinned_allocator () |
| std::size_t | pinned_allocator_getActualHighWatermark () |
Static Public Member Functions | |
| static std::unique_ptr< Env > & | instance () |
| static void | initialize (const std::uint64_t page_size=(1ul<< 25), const std::uint64_t pinned_alloc_limit=(1ul<< 40)) |
Protected Member Functions | |
| Env (::umpire::Allocator pinned_alloc) | |
Env maintains the runtime environment of TTG, such as device artifacts, memory allocators, etc.
|
delete |
|
delete |
|
inlineprotected |
|
inlinestatic |
initialize the instance using explicit params
| world | the world to use for initialization |
| page_size | memory added to the pools supporting this->um_allocator(), this->device_allocator(), and this->pinned_allocator() in chunks of at least this size (bytes) [default=2^25] |
| pinned_alloc_limit | the maximum total amount of memory (in bytes) that allocator returned by this->pinned_allocator() can allocate [default=2^40] |
Definition at line 52 of file env.h.
|
inlinestatic |
access the singleton instance; if not initialized will be initialized via Env::initialize() with the default params
Definition at line 37 of file env.h.
|
inline |
|
inline |
returns the value provided by umpire::strategy::QuickPool::getHighWatermark()
umpire::ResourceManager::getInstance().getAllocator("PINNED").getHighWatermark()
1.9.8