Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TMVA::DNN::TCudaDeviceReference< AFloat > Class Template Reference

template<typename AFloat>
class TMVA::DNN::TCudaDeviceReference< AFloat >

TCudaDeviceReference.

Helper class emulating lvalue references for AFloat values that are physically on the device. Allows for example to assign to matrix elements. Note that device access through CudaDeviceReferences enforces synchronization with all streams and thus qualifies as performance killer. Only used for testing.

Definition at line 54 of file CudaMatrix.h.

Public Member Functions

 TCudaDeviceReference (AFloat *devicePointer)
 
 operator AFloat ()
 
void operator+= (AFloat value)
 
void operator-= (AFloat value)
 
void operator= (const TCudaDeviceReference &other)
 
void operator= (AFloat value)
 

Private Attributes

AFloat * fDevicePointer
 

#include <TMVA/DNN/Architectures/Cuda/CudaMatrix.h>

Constructor & Destructor Documentation

◆ TCudaDeviceReference()

template<typename AFloat >
TMVA::DNN::TCudaDeviceReference< AFloat >::TCudaDeviceReference ( AFloat *  devicePointer)

Definition at line 201 of file CudaMatrix.h.

Member Function Documentation

◆ operator AFloat()

template<typename AFloat >
TMVA::DNN::TCudaDeviceReference< AFloat >::operator AFloat ( )

Definition at line 209 of file CudaMatrix.h.

◆ operator+=()

template<typename AFloat >
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator+= ( AFloat  value)

Definition at line 236 of file CudaMatrix.h.

◆ operator-=()

template<typename AFloat >
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator-= ( AFloat  value)

Definition at line 248 of file CudaMatrix.h.

◆ operator=() [1/2]

template<typename AFloat >
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator= ( const TCudaDeviceReference< AFloat > &  other)

Definition at line 219 of file CudaMatrix.h.

◆ operator=() [2/2]

template<typename AFloat >
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator= ( AFloat  value)

Definition at line 227 of file CudaMatrix.h.

Member Data Documentation

◆ fDevicePointer

template<typename AFloat>
AFloat* TMVA::DNN::TCudaDeviceReference< AFloat >::fDevicePointer
private

Definition at line 58 of file CudaMatrix.h.


The documentation for this class was generated from the following file: