struct gpr::linalg::KokkosTransferAuditStats

Overview

Every wrapped deep_copy and create_mirror. More…

#include <gpr/linalg/KokkosBackend.h>
 
struct KokkosTransferAuditStats {
    // fields
 
    KokkosTransferDirectionStats host_to_device;
    KokkosTransferDirectionStats device_to_host;
    KokkosTransferDirectionStats device_to_device;
    KokkosTransferDirectionStats host_to_host;
    KokkosTransferDirectionStats boundary_to_execution;
    KokkosTransferDirectionStats boundary_to_host;
    std::size_t mirror_create_calls = 0;
    std::size_t mirror_create_bytes = 0;
    std::size_t max_boundary_to_execution = 0;
    std::size_t max_boundary_to_host = 0;
};

Detailed Documentation

Every wrapped deep_copy and create_mirror. boundary_to_execution and boundary_to_host are the logical host/execution crossings. On a host-memory backend those crossings are also recorded as mirror copies, with the same call and byte totals the device backend records as H2D/D2H.

Fields

std::size_t max_boundary_to_execution = 0

Largest single logical crossing. A resident operation’s largest crossing is a packed input or a requested output, never a factor.