Skip to main content

struct runtime_testspy

Declaration

struct runtime_testspy { /* full declaration omitted */ };

Declared at: src/testspy/runtime_testspy.h:17

Member Function Overview

Member Functions

static executor& get_exec(runtime& rt)

Declared at: src/testspy/runtime_testspy.h:25

Parameters

runtime& rt

static task_id get_latest_epoch_reached(
    const runtime& rt)

Declared at: src/testspy/runtime_testspy.h:27

Parameters

const runtime& rt

static node_id get_local_nid(const runtime& rt)

Declared at: src/testspy/runtime_testspy.h:18

Parameters

const runtime& rt

static size_t get_num_local_devices(
    const runtime& rt)

Declared at: src/testspy/runtime_testspy.h:20

Parameters

const runtime& rt

static size_t get_num_nodes(const runtime& rt)

Declared at: src/testspy/runtime_testspy.h:19

Parameters

const runtime& rt

static scheduler& get_schdlr(runtime& rt)

Declared at: src/testspy/runtime_testspy.h:24

Parameters

runtime& rt

static task_graph& get_task_graph(runtime& rt)

Declared at: src/testspy/runtime_testspy.h:22

Parameters

runtime& rt

static task_manager& get_task_manager(runtime& rt)

Declared at: src/testspy/runtime_testspy.h:23

Parameters

runtime& rt

static std::string print_command_graph(
    node_id local_nid,
    runtime& rt)

Declared at: src/testspy/runtime_testspy.h:30

Parameters

node_id local_nid
runtime& rt

static std::string print_instruction_graph(
    runtime& rt)

Declared at: src/testspy/runtime_testspy.h:31

Parameters

runtime& rt

static std::string print_task_graph(runtime& rt)

Declared at: src/testspy/runtime_testspy.h:29

Parameters

runtime& rt

static void test_case_enter()

Description

Allows the runtime to be transitively instantiated in tests. Called from runtime_fixture.

Declared at: src/testspy/runtime_testspy.h:47


static void test_case_exit()

Description

Deletes the runtime instance, which happens only in tests. Called from runtime_fixture.

Declared at: src/testspy/runtime_testspy.h:52


static void test_mode_enter()

Description

Switches to test mode, where MPI will be initialized through test_case_enter() instead of runtime::runtime(). Called on Catch2 startup.

Declared at: src/testspy/runtime_testspy.h:38


static void test_mode_exit()

Description

Finalizes MPI if it was ever initialized in test mode. Called on Catch2 shutdown.

Declared at: src/testspy/runtime_testspy.h:41


static void test_require_mpi()

Description

Initializes MPI for tests, if it was not initialized before

Declared at: src/testspy/runtime_testspy.h:44


static bool test_runtime_was_instantiated()

Declared at: src/testspy/runtime_testspy.h:49