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 PluginPtr & | getPlugin () |
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 PluginPtr & | getPlugin< backend::opencl > () |
template const PluginPtr & | getPlugin< backend::ext_oneapi_level_zero > () |
template const PluginPtr & | getPlugin< backend::ext_oneapi_cuda > () |
template const PluginPtr & | getPlugin< 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 |
using sycl::_V1::detail::ur::DeviceBinaryType = typedef ::sycl_device_binary_type |
Definition at line 72 of file ur_utils.hpp.
|
inlinedelete |
|
inlinedelete |
|
inline |
|
inline |
Definition at line 145 of file backend_traits_opencl.hpp.
Referenced by sycl::_V1::detail::BufferInterop< backend::opencl, DataT, Dimensions, AllocatorT >::GetNativeObjs().
To sycl::_V1::detail::ur::cast | ( | std::vector< FromE > | Values | ) |
|
static |
Definition at line 263 of file ur.cpp.
Referenced by getBinaryImageFormat().
DeviceBinaryType sycl::_V1::detail::ur::getBinaryImageFormat | ( | const unsigned char * | ImgData, |
size_t | ImgSize | ||
) |
Tries to determine the device binary image foramat.
Returns SYCL_DEVICE_BINARY_TYPE_NONE if unsuccessful.
Definition at line 335 of file ur.cpp.
References checkELFSectionPresent(), getELFHeaderType(), SYCL_DEVICE_BINARY_TYPE_LLVMIR_BITCODE, SYCL_DEVICE_BINARY_TYPE_NATIVE, SYCL_DEVICE_BINARY_TYPE_NONE, and SYCL_DEVICE_BINARY_TYPE_SPIRV.
Referenced by sycl::_V1::detail::ProgramManager::createURProgram(), sycl::_V1::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), and sycl::_V1::detail::RTDeviceBinaryImage::init().
|
static |
Definition at line 55 of file windows_ur.cpp.
References ExeModuleHandle, and getOSModuleHandle().
|
static |
Definition at line 327 of file ur.cpp.
Referenced by getBinaryImageFormat().
void * sycl::_V1::detail::ur::getOsLibraryFuncAddress | ( | void * | Library, |
const std::string & | FunctionName | ||
) |
Definition at line 34 of file posix_ur.cpp.
Referenced by sycl::_V1::ext::__SYCL2020_DEPRECATED(), sycl::_V1::ext::oneapi::experimental::detail::checkOclocLibrary(), and sycl::_V1::ext::oneapi::experimental::detail::SetupLibrary().
const PluginPtr & sycl::_V1::detail::ur::getPlugin | ( | ) |
Definition at line 226 of file ur.cpp.
References initializeUr(), and sycl::_V1::runtime.
template const PluginPtr& sycl::_V1::detail::ur::getPlugin< backend::ext_oneapi_cuda > | ( | ) |
template const PluginPtr& sycl::_V1::detail::ur::getPlugin< backend::ext_oneapi_hip > | ( | ) |
template const PluginPtr& sycl::_V1::detail::ur::getPlugin< backend::ext_oneapi_level_zero > | ( | ) |
template const PluginPtr& sycl::_V1::detail::ur::getPlugin< backend::opencl > | ( | ) |
|
static |
Definition at line 96 of file ur.cpp.
References sycl::_V1::all, std::cerr, CHECK_UR_SUCCESS, sycl::_V1::detail::codeLocationCallback(), sycl::_V1::ext_oneapi_cuda, sycl::_V1::ext_oneapi_hip, sycl::_V1::ext_oneapi_level_zero, sycl::_V1::ext_oneapi_native_cpu, sycl::_V1::detail::SYCLConfig< Config >::get(), sycl::_V1::detail::ProgramManager::getInstance(), sycl::_V1::detail::GlobalHandler::getXPTIRegistry(), sycl::_V1::detail::XPTIRegistry::initializeFrameworkOnce(), sycl::_V1::detail::XPTIRegistry::initializeStream(), sycl::_V1::detail::GlobalHandler::instance(), sycl::_V1::opencl, sycl::_V1::detail::SYCL_STREAM_NAME, and XPTIInitDone.
Referenced by initializeUr().
std::vector< PluginPtr > & sycl::_V1::detail::ur::initializeUr | ( | ur_loader_config_handle_t | LoaderConfig = nullptr | ) |
Definition at line 86 of file ur.cpp.
References sycl::_V1::detail::GlobalHandler::getPlugins(), initializePlugins(), and sycl::_V1::detail::GlobalHandler::instance().
Referenced by sycl::_V1::detail::platform_impl::get_devices(), sycl::_V1::detail::platform_impl::get_platforms(), and getPlugin().
void * sycl::_V1::detail::ur::loadOsLibrary | ( | const std::string & | Library | ) |
Definition at line 20 of file posix_ur.cpp.
References std::cerr, and trace().
Referenced by sycl::_V1::ext::__SYCL2020_DEPRECATED(), and sycl::_V1::ext::oneapi::experimental::detail::loadOclocLibrary().
ur_program_metadata_t sycl::_V1::detail::ur::mapDeviceBinaryPropertyToProgramMetadata | ( | const sycl_device_binary_property & | DeviceBinaryProperty | ) |
Definition at line 382 of file ur.cpp.
References SYCL_PROPERTY_TYPE_BYTE_ARRAY, SYCL_PROPERTY_TYPE_STRING, and SYCL_PROPERTY_TYPE_UINT32.
Referenced by sycl::_V1::detail::RTDeviceBinaryImage::init().
|
static |
Definition at line 248 of file ur.cpp.
References sycl::_V1::ext::oneapi::experimental::copy().
bool sycl::_V1::detail::ur::trace | ( | ) |
Definition at line 78 of file ur.cpp.
References sycl::_V1::detail::SYCLConfig< Config >::get().
Referenced by sycl::_V1::detail::IsBannedPlatform(), loadOsLibrary(), and sycl::_V1::detail::traceDeviceSelection().
int sycl::_V1::detail::ur::unloadOsLibrary | ( | void * | Library | ) |
Definition at line 32 of file posix_ur.cpp.
bool sycl::_V1::detail::ur::XPTIInitDone = false |
Definition at line 83 of file ur.cpp.
Referenced by initializePlugins().