alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > > Struct Template Reference

The CUDA/HIP stream-ordered memory allocation capability trait specialization. More...

#include <BufUniformCudaHipRt.hpp>

+ Inheritance diagram for alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >:

Public Member Functions

 ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK (TApi::hostMalloc(reinterpret_cast< void ** >(&memPtr), sizeof(TElem) *static_cast< std::size_t >(getExtentProduct(extent)), TApi::hostMallocMapped|TApi::hostMallocPortable))
 
return BufCpu (host, memPtr, std::move(deleter), extent)
 

Public Attributes

 ALPAKA_DEBUG_MINIMAL_LOG_SCOPE
 
auto deleter = [](TElem* ptr) { ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK_NOEXCEPT(TApi::hostFree(ptr)); }
 
TElem * memPtr = nullptr
 

Detailed Description

template<typename TApi, typename TDim>
struct alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >

The CUDA/HIP stream-ordered memory allocation capability trait specialization.

Definition at line 322 of file BufUniformCudaHipRt.hpp.

Member Function Documentation

◆ ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK()

template<typename TApi , typename TDim >
alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >::ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK ( TApi::hostMalloc(reinterpret_cast< void ** >(&memPtr), sizeof(TElem) *static_cast< std::size_t >(getExtentProduct(extent)), TApi::hostMallocMapped|TApi::hostMallocPortable)  )

◆ BufCpu()

template<typename TApi , typename TDim >
return alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >::BufCpu ( host  ,
memPtr  ,
std::move(deleter ,
extent   
)

Member Data Documentation

◆ ALPAKA_DEBUG_MINIMAL_LOG_SCOPE

template<typename TApi , typename TDim >
alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >::ALPAKA_DEBUG_MINIMAL_LOG_SCOPE

Definition at line 347 of file BufUniformCudaHipRt.hpp.

◆ deleter

template<typename TApi , typename TDim >
auto alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >::deleter = [](TElem* ptr) { ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK_NOEXCEPT(TApi::hostFree(ptr)); }

Definition at line 356 of file BufUniformCudaHipRt.hpp.

◆ memPtr

template<typename TApi , typename TDim >
TElem* alpaka::trait::HasAsyncBufSupport< TDim, DevUniformCudaHipRt< TApi > >::memPtr = nullptr

Definition at line 351 of file BufUniformCudaHipRt.hpp.


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