SyTen

◆ get_device()

template<typename Type >
int syten::Cuda::CudaDynArray< Type >::get_device ( ) const
inline

Returns the device hosting data or -1 if either no device is used or data is the nullptr.

References syten::Cuda::CudaDynArray< Type >::data, and syten::Cuda::host_device().

Referenced by syten::Cuda::addScaled(), syten::Cuda::dot(), and syten::Cuda::scale().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: