Skip to main content

class buffer

Declaration

template <typename DataT, int Dims = 1>
class buffer { /* full declaration omitted */ };

Template Parameters

DataT
int Dims = 1

Member Variables

std::shared_ptr<tracker> m_tracker

Member Function Overview

  • buffer(const DataT * host_ptr, const range<Dims> & range) → explicit
  • buffer(const range<Dims> & range) → explicit
  • template <int D = Dims, typename = std::enable_if_t<D == 0>>
    buffer()
  • template <int D = Dims, typename = std::enable_if_t<D == 0>>
    buffer(const DataT & value)
  • template <access_mode Mode, typename Functor, int D = Dims, std::enable_if_t<(D > 0), int> = 0>
    get_access(handler & cgh, Functor rmfn) → accessor<DataT, Dims, Mode, target::device>
  • template <access_mode Mode, typename Functor, int D = Dims, std::enable_if_t<D == 0, int> = 0>
    get_access(handler & cgh) → accessor<DataT, Dims, Mode, target::device>
  • template <access_mode Mode, target Target, typename Functor, int D = Dims, std::enable_if_t<(D > 0), int> = 0>
    get_access(handler & cgh, Functor rmfn) → accessor<DataT, Dims, Mode, Target>
  • template <access_mode Mode, target Target, typename Functor, int D = Dims, std::enable_if_t<D == 0, int> = 0>
    get_access(handler & cgh) → accessor<DataT, Dims, Mode, Target>
  • template <access_mode Mode, typename Functor, int D = Dims, std::enable_if_t<(D > 0), int> = 0>
    get_access(handler & cgh, Functor rmfn) const → accessor<DataT, Dims, Mode, target::device>
  • template <access_mode Mode, target Target, typename Functor, int D = Dims, std::enable_if_t<(D > 0), int> = 0>
    get_access(handler & cgh, Functor rmfn) const → accessor<DataT, Dims, Mode, Target>
  • get_range() const → const range<Dims> &

Member Functions

explicit buffer(const DataT* host_ptr,
                const range<Dims>& range)

Parameters

const DataT* host_ptr
const range<Dims>& range

explicit buffer(const range<Dims>& range)

Parameters

const range<Dims>& range

template <int D = Dims,
          typename = std::enable_if_t<D == 0>>
buffer()

Template Parameters

int D = Dims
= std::enable_if_t<D == 0>

template <int D = Dims,
          typename = std::enable_if_t<D == 0>>
buffer(const DataT& value)

Template Parameters

int D = Dims
= std::enable_if_t<D == 0>

Parameters

const DataT& value

template <access_mode Mode,
          typename Functor,
          int D = Dims,
          std::enable_if_t<(D > 0), int> = 0>
accessor<DataT, Dims, Mode, target::device>
get_access(handler& cgh, Functor rmfn)

Template Parameters

access_mode Mode
Functor
int D = Dims
std::enable_if_t<(D > 0), int> = 0

Parameters

handler& cgh
Functor rmfn

template <access_mode Mode,
          typename Functor,
          int D = Dims,
          std::enable_if_t<D == 0, int> = 0>
accessor<DataT, Dims, Mode, target::device>
get_access(handler& cgh)

Template Parameters

access_mode Mode
Functor
int D = Dims
std::enable_if_t<D == 0, int> = 0

Parameters

handler& cgh

template <access_mode Mode,
          target Target,
          typename Functor,
          int D = Dims,
          std::enable_if_t<(D > 0), int> = 0>
accessor<DataT, Dims, Mode, Target> get_access(
    handler& cgh,
    Functor rmfn)

Template Parameters

access_mode Mode
target Target
Functor
int D = Dims
std::enable_if_t<(D > 0), int> = 0

Parameters

handler& cgh
Functor rmfn

template <access_mode Mode,
          target Target,
          typename Functor,
          int D = Dims,
          std::enable_if_t<D == 0, int> = 0>
accessor<DataT, Dims, Mode, Target> get_access(
    handler& cgh)

Template Parameters

access_mode Mode
target Target
Functor
int D = Dims
std::enable_if_t<D == 0, int> = 0

Parameters

handler& cgh

template <access_mode Mode,
          typename Functor,
          int D = Dims,
          std::enable_if_t<(D > 0), int> = 0>
accessor<DataT, Dims, Mode, target::device>
get_access(handler& cgh, Functor rmfn) const

Template Parameters

access_mode Mode
Functor
int D = Dims
std::enable_if_t<(D > 0), int> = 0

Parameters

handler& cgh
Functor rmfn

template <access_mode Mode,
          target Target,
          typename Functor,
          int D = Dims,
          std::enable_if_t<(D > 0), int> = 0>
accessor<DataT, Dims, Mode, Target> get_access(
    handler& cgh,
    Functor rmfn) const

Template Parameters

access_mode Mode
target Target
Functor
int D = Dims
std::enable_if_t<(D > 0), int> = 0

Parameters

handler& cgh
Functor rmfn

const range<Dims>& get_range() const