class runtime
Declaration
class runtime { /* full declaration omitted */ };
Declared at: include/runtime.h:18
Member Variables
- std::unique_ptr<impl> m_impl
- static bool s_mpi_initialized
- static bool s_mpi_finalized
- static bool s_test_mode
- static bool s_test_active
- static bool s_test_runtime_was_instantiated
- static runtime s_instance
Member Function Overview
- create_buffer(const range<3> & range, size_t elem_size, size_t elem_align, allocation_id user_aid) → buffer_id
- create_host_object(std::unique_ptr<host_object_instance> instance) → host_object_id
- create_queue() → void
- create_reduction(std::unique_ptr<reducer> reducer) → reduction_id
- create_user_allocation(void * ptr) → allocation_id
- destroy_buffer(buffer_id bid) → void
- destroy_host_object(host_object_id hoid) → void
- destroy_queue() → void
- fence(buffer_access access, std::unique_ptr<task_promise> fence_promise) → task_id
- fence(host_object_effect effect, std::unique_ptr<task_promise> fence_promise) → task_id
- flush_scheduler() → void
- get_instance() → static runtime &
- has_instance() → static bool
- init(int * argc, char *** argv, const devices_or_selector & user_devices_or_selector = celerity::detail::auto_select_devices{}) → static void
- is_dry_run() const → bool
- operator=(runtime &&) → runtime &
- operator=(const runtime &) → runtime &
- runtime(runtime &&)
- runtime(const runtime &)
- set_buffer_debug_name(buffer_id bid, const std::string & debug_name) → void
- set_scheduler_lookahead(experimental::lookahead lookahead) → void
- shutdown() → static void
- submit(raw_command_group && cg) → task_id
- sync(detail::epoch_action action) → task_id
- ~runtime()
- mpi_finalize_once() → static void
- mpi_initialize_once(int * argc, char *** argv) → static void
- runtime()
Member Functions
¶buffer_id create_buffer(const range<3>& range,
size_t elem_size,
size_t elem_align,
allocation_id user_aid)
buffer_id create_buffer(const range<3>& range,
size_t elem_size,
size_t elem_align,
allocation_id user_aid)
Declared at: include/runtime.h:53
Parameters
- const range<3>& range
- size_t elem_size
- size_t elem_align
- allocation_id user_aid
¶host_object_id create_host_object(
std::unique_ptr<host_object_instance>
instance)
host_object_id create_host_object(
std::unique_ptr<host_object_instance>
instance)
Declared at: include/runtime.h:59
Parameters
- std::unique_ptr<host_object_instance> instance
¶void create_queue()
void create_queue()
Declared at: include/runtime.h:47
¶reduction_id create_reduction(
std::unique_ptr<reducer> reducer)
reduction_id create_reduction(
std::unique_ptr<reducer> reducer)
Declared at: include/runtime.h:63
Parameters
- std::unique_ptr<reducer> reducer
¶allocation_id create_user_allocation(void* ptr)
allocation_id create_user_allocation(void* ptr)
Declared at: include/runtime.h:51
Parameters
- void* ptr
¶void destroy_buffer(buffer_id bid)
void destroy_buffer(buffer_id bid)
Declared at: include/runtime.h:57
Parameters
- buffer_id bid
¶void destroy_host_object(host_object_id hoid)
void destroy_host_object(host_object_id hoid)
Declared at: include/runtime.h:61
Parameters
- host_object_id hoid
¶void destroy_queue()
void destroy_queue()
Declared at: include/runtime.h:49
¶task_id fence(
buffer_access access,
std::unique_ptr<task_promise> fence_promise)
task_id fence(
buffer_access access,
std::unique_ptr<task_promise> fence_promise)
Declared at: include/runtime.h:41
Parameters
- buffer_access access
- std::unique_ptr<task_promise> fence_promise
¶task_id fence(
host_object_effect effect,
std::unique_ptr<task_promise> fence_promise)
task_id fence(
host_object_effect effect,
std::unique_ptr<task_promise> fence_promise)
Declared at: include/runtime.h:43
Parameters
- host_object_effect effect
- std::unique_ptr<task_promise> fence_promise
¶void flush_scheduler()
void flush_scheduler()
Declared at: include/runtime.h:69
¶static runtime& get_instance()
static runtime& get_instance()
Declared at: include/runtime.h:31
¶static bool has_instance()
static bool has_instance()
Declared at: include/runtime.h:27
¶static void init(
int* argc,
char*** argv,
const devices_or_selector&
user_devices_or_selector = celerity::
detail::auto_select_devices{})
static void init(
int* argc,
char*** argv,
const devices_or_selector&
user_devices_or_selector = celerity::
detail::auto_select_devices{})
Declared at: include/runtime.h:25
Parameters
- int* argc
- char*** argv
- const devices_or_selector& user_devices_or_selector = celerity::detail::auto_select_devices{}
¶bool is_dry_run() const
bool is_dry_run() const
Declared at: include/runtime.h:65
¶runtime& operator=(runtime&&)
runtime& operator=(runtime&&)
Declared at: include/runtime.h:36
Parameters
- runtime&&
¶runtime& operator=(const runtime&)
runtime& operator=(const runtime&)
Declared at: include/runtime.h:35
Parameters
- const runtime&
¶runtime(runtime&&)
runtime(runtime&&)
Declared at: include/runtime.h:34
Parameters
- runtime&&
¶runtime(const runtime&)
runtime(const runtime&)
Declared at: include/runtime.h:33
Parameters
- const runtime&
¶void set_buffer_debug_name(
buffer_id bid,
const std::string& debug_name)
void set_buffer_debug_name(
buffer_id bid,
const std::string& debug_name)
Declared at: include/runtime.h:55
Parameters
- buffer_id bid
- const std::string& debug_name
¶void set_scheduler_lookahead(
experimental::lookahead lookahead)
void set_scheduler_lookahead(
experimental::lookahead lookahead)
Declared at: include/runtime.h:67
Parameters
- experimental::lookahead lookahead
¶static void shutdown()
static void shutdown()
Declared at: include/runtime.h:29
¶task_id submit(raw_command_group&& cg)
task_id submit(raw_command_group&& cg)
Declared at: include/runtime.h:39
Parameters
- raw_command_group&& cg
¶task_id sync(detail::epoch_action action)
task_id sync(detail::epoch_action action)
Declared at: include/runtime.h:45
Parameters
- detail::epoch_action action
¶~runtime()
~runtime()
Declared at: include/runtime.h:37
¶static void mpi_finalize_once()
static void mpi_finalize_once()
Declared at: include/runtime.h:82
¶static void mpi_initialize_once(int* argc,
char*** argv)
static void mpi_initialize_once(int* argc,
char*** argv)
Declared at: include/runtime.h:81
Parameters
- int* argc
- char*** argv
¶runtime()
runtime()
Declared at: include/runtime.h:88