16 #ifndef TMVA_DNN_ARCHITECTURES_CUDA_CUDABUFFERS 17 #define TMVA_DNN_ARCHITECTURES_CUDA_CUDABUFFERS 20 #include "cuda_runtime.h" 26 template<
typename AFloat>
40 template<
typename AFloat>
76 operator AFloat * ()
const;
95 template<
typename AFloat>
131 operator AFloat * ()
const;
145 template<
typename AFloat>
151 template<
typename AFloat>
TDestructor & operator=(const TDestructor &)=default
std::shared_ptr< AFloat * > fHostPointer
Pointer to the buffer data.
void SetComputeStream(cudaStream_t stream)
cudaStream_t GetComputeStream() const
size_t fOffset
Offset for sub-buffers.
AFloat & operator[](size_t index)
struct TMVA::DNN::TCudaHostBuffer::TDestructor fDestructor
cudaStream_t fComputeStream
cudaStream for data transfer
void operator()(AFloat **devicePointer)
std::shared_ptr< AFloat * > fDevicePointer
Pointer to the buffer data.
TCudaHostBuffer()=default
Abstract ClassifierFactory template that handles arbitrary types.
TCudaHostBuffer GetSubBuffer(size_t offset, size_t size)
Return sub-buffer of the current buffer.
size_t fOffset
Offset for sub-buffers.
cudaStream_t fComputeStream
cudaStream for data transfer