ROOT 6.12/07 Reference Guide |
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>
TMVA::DNN::TCudaDeviceReference< AFloat >::TCudaDeviceReference | ( | AFloat * | devicePointer | ) |
Definition at line 188 of file CudaMatrix.h.
TMVA::DNN::TCudaDeviceReference< AFloat >::operator AFloat | ( | ) |
Definition at line 196 of file CudaMatrix.h.
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator+= | ( | AFloat | value | ) |
Definition at line 223 of file CudaMatrix.h.
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator-= | ( | AFloat | value | ) |
Definition at line 235 of file CudaMatrix.h.
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator= | ( | const TCudaDeviceReference< AFloat > & | other | ) |
Definition at line 206 of file CudaMatrix.h.
void TMVA::DNN::TCudaDeviceReference< AFloat >::operator= | ( | AFloat | value | ) |
Definition at line 214 of file CudaMatrix.h.
|
private |
Definition at line 58 of file CudaMatrix.h.