Eigen-Contrib  5.0.1
 
Loading...
Searching...
No Matches
Eigen::gpu::HostTransfer< Scalar_ > Class Template Reference

#include <contrib/Eigen/src/GPU/DeviceMatrix.h>

Detailed Description

template<typename Scalar_>
class Eigen::gpu::HostTransfer< Scalar_ >

Future for an asynchronous device-to-host matrix transfer.

Returned by gpu::DeviceMatrix::toHostAsync(). The transfer runs asynchronously on the given CUDA stream. Call get() to block until complete and retrieve the host matrix, or ready() to poll without blocking.

Public Member Functions

PlainMatrix & get ()
 
bool ready () const
 

Member Function Documentation

◆ get()

template<typename Scalar_>
PlainMatrix & Eigen::gpu::HostTransfer< Scalar_ >::get ( )
inline

Block until the transfer completes and return the host matrix. Idempotent: subsequent calls return the same matrix without re-syncing.

◆ ready()

template<typename Scalar_>
bool Eigen::gpu::HostTransfer< Scalar_ >::ready ( ) const
inline

Non-blocking check: has the transfer completed?


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