DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::OptionalDevice Struct Reference

#include <CL/sycl/detail/backend_traits_level_zero.hpp>

Public Member Functions

 OptionalDevice ()
 
 OptionalDevice (device dev)
 
 operator device () const
 
OptionalDeviceoperator= (OptionalDevice &Other)
 
OptionalDeviceoperator= (device &Other)
 

Friends

bool OptionalDeviceHasDevice (const OptionalDevice &Dev)
 

Detailed Description

Definition at line 137 of file backend_traits_level_zero.hpp.

Constructor & Destructor Documentation

◆ OptionalDevice() [1/2]

cl::sycl::detail::OptionalDevice::OptionalDevice ( )
inline

Definition at line 138 of file backend_traits_level_zero.hpp.

◆ OptionalDevice() [2/2]

cl::sycl::detail::OptionalDevice::OptionalDevice ( device  dev)
inline

Definition at line 139 of file backend_traits_level_zero.hpp.

Member Function Documentation

◆ operator device()

cl::sycl::detail::OptionalDevice::operator device ( ) const
inline

Definition at line 141 of file backend_traits_level_zero.hpp.

◆ operator=() [1/2]

OptionalDevice& cl::sycl::detail::OptionalDevice::operator= ( device Other)
inline

Definition at line 151 of file backend_traits_level_zero.hpp.

References cl::sycl::detail::getSyclObjImpl().

◆ operator=() [2/2]

OptionalDevice& cl::sycl::detail::OptionalDevice::operator= ( OptionalDevice Other)
inline

Definition at line 147 of file backend_traits_level_zero.hpp.

Friends And Related Function Documentation

◆ OptionalDeviceHasDevice

bool OptionalDeviceHasDevice ( const OptionalDevice Dev)
friend

Definition at line 164 of file backend_traits_level_zero.hpp.


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