Skip to content

File ns_pmu_accumulator.h

FileList > includes-api > ns_pmu_accumulator.h

Go to the source code of this file

  • #include <stdint.h>
  • #include <stdbool.h>

Classes

Type Name
struct ns_pmu_accm_t

Public Functions

Type Name
bool ns_pmu_accm_complete (ns_pmu_accm_t h)
ns_pmu_accm_t ns_pmu_accm_create (uint16_t ops, uint16_t events, void * backing_buf)
void ns_pmu_accm_destroy (ns_pmu_accm_t h)
uint16_t ns_pmu_accm_find_tag (ns_pmu_accm_t h, const char * tag)
void ns_pmu_accm_get (ns_pmu_accm_t h, uint32_t ** matrix)
void ns_pmu_accm_get_layer (ns_pmu_accm_t h, uint16_t layer, uint32_t * out, uint16_t caller_capacity)
void ns_pmu_accm_inference_begin (ns_pmu_accm_t h)
void ns_pmu_accm_inference_end (ns_pmu_accm_t h)
void ns_pmu_accm_op_begin (ns_pmu_accm_t h, uint16_t op_idx)
void ns_pmu_accm_op_end (ns_pmu_accm_t h, uint16_t op_idx)
uint16_t ns_pmu_accm_resolve_tag (ns_pmu_accm_t h, const char * tag)
void ns_pmu_accmprint_matrix (ns_pmu_accm_t h, uint32_t * matrix, uint16_t ops, uint16_t events)

Macros

Type Name
define NS_PMU_MAP_SIZE 70
define NS_PMU_MATRIX_BYTES (_ops, _evt) ( (\_ops) \* (\_evt) \* sizeof(uint32\_t) )
define NS_PMU_MAX_ACTIVE_MATRICES 1 /\* simultaneous matrices \*/
define NS_PMU_MAX_OPS 2048

Public Functions Documentation

function ns_pmu_accm_complete

bool ns_pmu_accm_complete (
    ns_pmu_accm_t h
) 

function ns_pmu_accm_create

ns_pmu_accm_t ns_pmu_accm_create (
    uint16_t ops,
    uint16_t events,
    void * backing_buf
) 

function ns_pmu_accm_destroy

void ns_pmu_accm_destroy (
    ns_pmu_accm_t h
) 

function ns_pmu_accm_find_tag

uint16_t ns_pmu_accm_find_tag (
    ns_pmu_accm_t h,
    const char * tag
) 

function ns_pmu_accm_get

void ns_pmu_accm_get (
    ns_pmu_accm_t h,
    uint32_t ** matrix
) 

function ns_pmu_accm_get_layer

void ns_pmu_accm_get_layer (
    ns_pmu_accm_t h,
    uint16_t layer,
    uint32_t * out,
    uint16_t caller_capacity
) 

function ns_pmu_accm_inference_begin

void ns_pmu_accm_inference_begin (
    ns_pmu_accm_t h
) 

function ns_pmu_accm_inference_end

void ns_pmu_accm_inference_end (
    ns_pmu_accm_t h
) 

function ns_pmu_accm_op_begin

void ns_pmu_accm_op_begin (
    ns_pmu_accm_t h,
    uint16_t op_idx
) 

function ns_pmu_accm_op_end

void ns_pmu_accm_op_end (
    ns_pmu_accm_t h,
    uint16_t op_idx
) 

function ns_pmu_accm_resolve_tag

uint16_t ns_pmu_accm_resolve_tag (
    ns_pmu_accm_t h,
    const char * tag
) 

function ns_pmu_accmprint_matrix

void ns_pmu_accmprint_matrix (
    ns_pmu_accm_t h,
    uint32_t * matrix,
    uint16_t ops,
    uint16_t events
) 

Macro Definition Documentation

define NS_PMU_MAP_SIZE

#define NS_PMU_MAP_SIZE `70`

define NS_PMU_MATRIX_BYTES

#define NS_PMU_MATRIX_BYTES (
    _ops,
    _evt
) `( (_ops) * (_evt) * sizeof(uint32_t) )`

define NS_PMU_MAX_ACTIVE_MATRICES

#define NS_PMU_MAX_ACTIVE_MATRICES `1            /* simultaneous matrices   */`

define NS_PMU_MAX_OPS

#define NS_PMU_MAX_OPS `2048`


The documentation for this class was generated from the following file neuralspot/neuralspot/ns-utils/includes-api/ns_pmu_accumulator.h