DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename > Class Template Reference

#include <sycl/ext/oneapi/device_global/device_global.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >:

Public Member Functions

 device_global_base ()=default
 
template<access::decorated IsDecorated>
multi_ptr< T, access::address_space::global_space, IsDecorated > get_multi_ptr () noexcept
 
template<access::decorated IsDecorated>
multi_ptr< const T, access::address_space::global_space, IsDecorated > get_multi_ptr () const noexcept
 

Protected Types

using pointer_t = typename decorated_global_ptr< T >::pointer
 

Protected Member Functions

pointer_t get_ptr () noexcept
 
pointer_t get_ptr () const noexcept
 

Protected Attributes

pointer_t usmptr {}
 
const T init_val {}
 

Detailed Description

template<typename T, typename PropertyListT, typename = void>
class sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >

Definition at line 54 of file device_global.hpp.

Member Typedef Documentation

◆ pointer_t

template<typename T , typename PropertyListT , typename = void>
using sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::pointer_t = typename decorated_global_ptr<T>::pointer
protected

Definition at line 56 of file device_global.hpp.

Constructor & Destructor Documentation

◆ device_global_base()

template<typename T , typename PropertyListT , typename = void>
sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::device_global_base ( )
default

Member Function Documentation

◆ get_multi_ptr() [1/2]

template<typename T , typename PropertyListT , typename = void>
template<access::decorated IsDecorated>
multi_ptr<const T, access::address_space::global_space, IsDecorated> sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::get_multi_ptr ( ) const
inlinenoexcept

◆ get_multi_ptr() [2/2]

template<typename T , typename PropertyListT , typename = void>
template<access::decorated IsDecorated>
multi_ptr<T, access::address_space::global_space, IsDecorated> sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::get_multi_ptr ( )
inlinenoexcept

◆ get_ptr() [1/2]

template<typename T , typename PropertyListT , typename = void>
pointer_t sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::get_ptr ( ) const
inlineprotectednoexcept

◆ get_ptr() [2/2]

Member Data Documentation

◆ init_val

template<typename T , typename PropertyListT , typename = void>
const T sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::init_val {}
protected

Definition at line 61 of file device_global.hpp.

◆ usmptr

template<typename T , typename PropertyListT , typename = void>
pointer_t sycl::_V1::ext::oneapi::experimental::detail::device_global_base< T, PropertyListT, typename >::usmptr {}
mutableprotected

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