Version 2 de la réduction. Plus de détails...
Types publics | |
using | BaseClass = HostDeviceReducerBase< DataType, ReduceFunctor > |
Fonctions membres publiques | |
HostDeviceReducer2 (RunCommand &command) | |
DataType | reducedValue () |
Fonctions membres publiques hérités de Arcane::Accelerator::HostDeviceReducerBase< DataType, ReduceFunctor > | |
HostDeviceReducerBase (RunCommand &command) | |
ARCCORE_HOST_DEVICE | HostDeviceReducerBase (const HostDeviceReducerBase &rhs) |
ARCCORE_HOST_DEVICE | HostDeviceReducerBase (HostDeviceReducerBase &&rhs)=delete |
HostDeviceReducerBase & | operator= (const HostDeviceReducerBase &rhs)=delete |
ARCCORE_HOST_DEVICE void | setValue (DataType v) |
ARCCORE_HOST_DEVICE DataType | localValue () const |
Attributs publics | |
impl::IReduceMemoryImpl::GridMemoryInfo | m_grid_memory_info |
DataType * | m_host_or_device_memory_for_reduced_value |
Pointeur vers la donnée qui contiendra la valeur réduite. | |
DataType | m_local_value |
Fonctions membres privées | |
void | _internalReduceHost () |
Membres hérités additionnels | |
Fonctions membres protégées hérités de Arcane::Accelerator::HostDeviceReducerBase< DataType, ReduceFunctor > | |
DataType | _reduce () |
Effectue la réduction et récupère la valeur. ATTENTION: ne faire qu'une seule fois. | |
ARCCORE_HOST_DEVICE void | _finalize () |
Attributs protégés hérités de Arcane::Accelerator::HostDeviceReducerBase< DataType, ReduceFunctor > | |
impl::IReduceMemoryImpl * | m_memory_impl = nullptr |
DataType * | m_host_or_device_memory_for_reduced_value = nullptr |
Pointeur vers la donnée qui contiendra la valeur réduite. | |
impl::IReduceMemoryImpl::GridMemoryInfo | m_grid_memory_info |
DataType | m_local_value |
DataType * | m_atomic_parent_value = nullptr |
DataType | m_atomic_value |
Version 2 de la réduction.
using Arcane::Accelerator::HostDeviceReducer2< DataType, ReduceFunctor >::BaseClass = HostDeviceReducerBase<DataType, ReduceFunctor> |
|
inlineexplicit |
|
inlineprivate |
|
inline |
impl::IReduceMemoryImpl::GridMemoryInfo Arcane::Accelerator::HostDeviceReducerBase< DataType, ReduceFunctor >::m_grid_memory_info |
DataType* Arcane::Accelerator::HostDeviceReducerBase< DataType, ReduceFunctor >::m_host_or_device_memory_for_reduced_value |
|
mutable |