DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::ur Namespace Reference

Classes

struct  IsStdVector
 
struct  IsStdVector< std::vector< T > >
 

Typedefs

using DeviceBinaryType = ::sycl_device_binary_type
 

Functions

template<class To >
To cast (std::vector< cl_event > value)
 
template<>
ur_program_handle_t cast (cl_program)=delete
 
template<>
ur_device_handle_t cast (cl_device_id)=delete
 
void * loadOsLibrary (const std::string &Library)
 
int unloadOsLibrary (void *Library)
 
void * getOsLibraryFuncAddress (void *Library, const std::string &FunctionName)
 
std::vector< PluginPtr > & initializeUr (ur_loader_config_handle_t LoaderConfig=nullptr)
 
template<backend BE>
const PluginPtrgetPlugin ()
 
bool trace ()
 
template<class To , class From >
To cast (From value)
 
template<class To , class FromE >
To cast (std::vector< FromE > Values)
 
ur_program_metadata_t mapDeviceBinaryPropertyToProgramMetadata (const sycl_device_binary_property &DeviceBinaryProperty)
 
static void initializePlugins (std::vector< PluginPtr > &Plugins, ur_loader_config_handle_t LoaderConfig)
 
template const PluginPtrgetPlugin< backend::opencl > ()
 
template const PluginPtrgetPlugin< backend::ext_oneapi_level_zero > ()
 
template const PluginPtrgetPlugin< backend::ext_oneapi_cuda > ()
 
template const PluginPtrgetPlugin< backend::ext_oneapi_hip > ()
 
template<typename ResT >
static ResT readELFValue (const unsigned char *Data, size_t NumBytes, bool IsBigEndian)
 
static bool checkELFSectionPresent (const std::string &ExpectedSectionName, const unsigned char *ImgData, size_t ImgSize)
 
static uint16_t getELFHeaderType (const unsigned char *ImgData, size_t ImgSize)
 
sycl_device_binary_type getBinaryImageFormat (const unsigned char *ImgData, size_t ImgSize)
 Tries to determine the device binary image foramat. More...
 
static std::filesystem::path getCurrentDSODirPath ()
 

Variables

bool XPTIInitDone = false
 

Typedef Documentation

◆ DeviceBinaryType

Definition at line 72 of file ur_utils.hpp.

Function Documentation

◆ cast() [1/5]

template<>
ur_device_handle_t sycl::_V1::detail::ur::cast ( cl_device_id  )
inlinedelete

◆ cast() [2/5]

template<>
ur_program_handle_t sycl::_V1::detail::ur::cast ( cl_program  )
inlinedelete

◆ cast() [3/5]

template<class To , class From >
To sycl::_V1::detail::ur::cast ( From  value)
inline

Definition at line 94 of file ur.hpp.

◆ cast() [4/5]

template<class To >
To sycl::_V1::detail::ur::cast ( std::vector< cl_event >  value)
inline

◆ cast() [5/5]

template<class To , class FromE >
To sycl::_V1::detail::ur::cast ( std::vector< FromE >  Values)

Definition at line 106 of file ur.hpp.

◆ checkELFSectionPresent()

static bool sycl::_V1::detail::ur::checkELFSectionPresent ( const std::string &  ExpectedSectionName,
const unsigned char *  ImgData,
size_t  ImgSize 
)
static

Definition at line 263 of file ur.cpp.

Referenced by getBinaryImageFormat().

◆ getBinaryImageFormat()

DeviceBinaryType sycl::_V1::detail::ur::getBinaryImageFormat ( const unsigned char *  ImgData,
size_t  ImgSize 
)

◆ getCurrentDSODirPath()

static std::filesystem::path sycl::_V1::detail::ur::getCurrentDSODirPath ( )
static

Definition at line 55 of file windows_ur.cpp.

References ExeModuleHandle, and getOSModuleHandle().

◆ getELFHeaderType()

static uint16_t sycl::_V1::detail::ur::getELFHeaderType ( const unsigned char *  ImgData,
size_t  ImgSize 
)
static

Definition at line 327 of file ur.cpp.

Referenced by getBinaryImageFormat().

◆ getOsLibraryFuncAddress()

void * sycl::_V1::detail::ur::getOsLibraryFuncAddress ( void *  Library,
const std::string &  FunctionName 
)

◆ getPlugin()

template<backend BE>
const PluginPtr & sycl::_V1::detail::ur::getPlugin ( )

Definition at line 226 of file ur.cpp.

References initializeUr(), and sycl::_V1::runtime.

◆ getPlugin< backend::ext_oneapi_cuda >()

◆ getPlugin< backend::ext_oneapi_hip >()

◆ getPlugin< backend::ext_oneapi_level_zero >()

◆ getPlugin< backend::opencl >()

◆ initializePlugins()

◆ initializeUr()

std::vector< PluginPtr > & sycl::_V1::detail::ur::initializeUr ( ur_loader_config_handle_t  LoaderConfig = nullptr)

◆ loadOsLibrary()

void * sycl::_V1::detail::ur::loadOsLibrary ( const std::string &  Library)

◆ mapDeviceBinaryPropertyToProgramMetadata()

ur_program_metadata_t sycl::_V1::detail::ur::mapDeviceBinaryPropertyToProgramMetadata ( const sycl_device_binary_property DeviceBinaryProperty)

◆ readELFValue()

template<typename ResT >
static ResT sycl::_V1::detail::ur::readELFValue ( const unsigned char *  Data,
size_t  NumBytes,
bool  IsBigEndian 
)
static

Definition at line 248 of file ur.cpp.

References sycl::_V1::ext::oneapi::experimental::copy().

◆ trace()

bool sycl::_V1::detail::ur::trace ( )

◆ unloadOsLibrary()

int sycl::_V1::detail::ur::unloadOsLibrary ( void *  Library)

Definition at line 32 of file posix_ur.cpp.

Variable Documentation

◆ XPTIInitDone

bool sycl::_V1::detail::ur::XPTIInitDone = false

Definition at line 83 of file ur.cpp.

Referenced by initializePlugins().