Skip to main content

class copy_instruction

Declaration

class copy_instruction : public implement_acceptor { /* full declaration omitted */ };

Description

Copies one or more subranges of elements from one allocation to another, potentially between different memories.

Inherits from: implement_acceptor

Member Variables

allocation_with_offset m_source_alloc
allocation_with_offset m_dest_alloc
box<3> m_source_box
box<3> m_dest_box
region<3> m_copy_region
size_t m_elem_size

Member Function Overview

Member Functions

explicit copy_instruction(
    instruction_id iid,
    int priority,
    const allocation_with_offset& source_alloc,
    const allocation_with_offset& dest_alloc,
    const box<3>& source_box,
    const box<3>& dest_box,
    region<3> copy_region,
    size_t elem_size)

Parameters

instruction_id iid
int priority
const allocation_with_offset& source_alloc
const allocation_with_offset& dest_alloc
const box<3>& source_box
const box<3>& dest_box
region<3> copy_region
size_t elem_size

const region<3>& get_copy_region() const


const allocation_with_offset&
get_dest_allocation() const


const box<3>& get_dest_box() const


size_t get_element_size() const


const allocation_with_offset&
get_source_allocation() const


const box<3>& get_source_box() const