Skip to main content

class reducer

Declaration

class reducer { /* full declaration omitted */ };

Description

Type-erased runtime reduction operation. Used to prepare and complete reductions on host memory in the executor.

Member Function Overview

Member Functions

virtual void fill_identity(void* dest,
                           size_t count) const

Description

Fills count values starting at dest with the reduction's identity value. dest is considered uninitialized, operand size is implicit.

Parameters

void* dest
size_t count

virtual void reduce(void* dest,
                    const void* src,
                    size_t src_count) const

Description

Reduces src_count values starting at src and stores the result in dest. Operand size is implicit.

Parameters

void* dest
const void* src
size_t src_count

virtual ~reducer()


reducer& operator=(const reducer&)

Parameters

const reducer&

reducer& operator=(reducer&&)

Parameters

reducer&&

reducer()


reducer(const reducer&)

Parameters

const reducer&

reducer(reducer&&)

Parameters

reducer&&