#include <detail/device_binary_image.hpp>
Classes | |
class | PropertyRange |
Protected Member Functions | |
void | init (sycl_device_binary Bin) |
sycl_device_binary | get () const |
Definition at line 87 of file device_binary_image.hpp.
|
inline |
Definition at line 140 of file device_binary_image.hpp.
|
inline |
Definition at line 141 of file device_binary_image.hpp.
|
delete |
|
default |
|
inlinevirtual |
Definition at line 150 of file device_binary_image.hpp.
|
virtual |
Definition at line 139 of file device_binary_image.cpp.
References Bin, sycl_device_binary_struct::BinaryStart, and getSize().
|
inlineprotected |
Definition at line 238 of file device_binary_image.hpp.
References Bin.
Referenced by sycl::_V1::detail::ProgramManager::build(), getRawData(), and sycl::_V1::detail::SetKernelParamsAndLaunch().
|
inline |
Definition at line 217 of file device_binary_image.hpp.
References AssertUsed.
|
inline |
Definition at line 166 of file device_binary_image.hpp.
References Bin, and sycl_device_binary_struct::CompileOptions.
Referenced by sycl::_V1::detail::appendCompileOptionsFromImage().
|
inline |
Definition at line 224 of file device_binary_image.hpp.
References DeviceGlobals.
|
inline |
Definition at line 213 of file device_binary_image.hpp.
References DeviceLibReqMask.
Referenced by sycl::_V1::detail::ProgramManager::getDeviceLibReqMask().
|
inline |
Definition at line 225 of file device_binary_image.hpp.
References DeviceRequirements.
Referenced by sycl::_V1::detail::checkDevSupportDeviceRequirements().
|
inline |
Definition at line 222 of file device_binary_image.hpp.
References ExportedSymbols.
|
inline |
Returns the format of the binary image.
Definition at line 177 of file device_binary_image.hpp.
Referenced by sycl::_V1::detail::ProgramManager::build(), sycl::_V1::detail::ProgramManager::createURProgram(), sycl::_V1::detail::ProgramManager::getBuiltURProgram(), and supportsSpecConstants().
|
inline |
Definition at line 228 of file device_binary_image.hpp.
References HostPipes.
|
inline |
Definition at line 231 of file device_binary_image.hpp.
References Bin.
Referenced by sycl::_V1::detail::ProgramManager::build(), sycl::_V1::detail::ProgramManager::getBuiltURProgram(), and sycl::_V1::detail::context_impl::getProgramForHostPipe().
|
inline |
Definition at line 223 of file device_binary_image.hpp.
References ImportedSymbols.
|
inline |
Definition at line 214 of file device_binary_image.hpp.
References KernelParamOptInfo.
|
inline |
Definition at line 171 of file device_binary_image.hpp.
References Bin, and sycl_device_binary_struct::LinkOptions.
Referenced by sycl::_V1::detail::appendLinkOptionsFromImage().
|
inline |
Definition at line 218 of file device_binary_image.hpp.
References ProgramMetadata.
|
inline |
Definition at line 219 of file device_binary_image.hpp.
References ProgramMetadataUR.
Referenced by sycl::_V1::detail::ProgramManager::createURProgram().
sycl_device_binary_property sycl::_V1::detail::RTDeviceBinaryImage::getProperty | ( | const char * | PropName | ) | const |
Returns a single property from SYCL_MISC_PROP category.
Definition at line 145 of file device_binary_image.cpp.
References __SYCL_PROPERTY_SET_SYCL_MISC_PROP, sycl::_V1::detail::RTDeviceBinaryImage::PropertyRange::begin(), Bin, sycl::_V1::detail::RTDeviceBinaryImage::PropertyRange::end(), and sycl::_V1::detail::RTDeviceBinaryImage::PropertyRange::isAvailable().
Referenced by sycl::_V1::detail::appendCompileOptionsForGRFSizeProperties(), sycl::_V1::detail::getUint32PropAsBool(), sycl::_V1::detail::getUint32PropAsOptStr(), and sycl::_V1::detail::device_image_impl::specialization_constants_replaced_with_default().
|
inline |
Definition at line 156 of file device_binary_image.hpp.
References get().
Referenced by sycl::_V1::detail::device_image_impl::all_specialization_constant_native(), sycl::_V1::detail::CheckJITCompilationForImage(), sycl::_V1::detail::checkLinkingSupport(), sycl::_V1::detail::compatibleWithDevice(), sycl::_V1::detail::ProgramManager::createURProgram(), sycl::_V1::detail::getBinImageState(), sycl::_V1::detail::ProgramManager::getDeviceImage(), and sycl::_V1::detail::getRawImg().
|
inline |
Definition at line 161 of file device_binary_image.hpp.
References Bin, sycl_device_binary_struct::BinaryEnd, and sycl_device_binary_struct::BinaryStart.
Referenced by sycl::_V1::detail::ProgramManager::createURProgram(), dump(), and init().
|
inline |
Gets the iterator range over specialization constants in this binary image.
For each property pointed to by an iterator within the range, the name of the property is the specialization constant symbolic ID and the value is a list of 3-element tuples of 32-bit unsigned integers, describing the specialization constant. This is done in order to unify representation of both scalar and composite specialization constants: composite specialization constant is represented by its leaf elements, so for scalars the list contains only a single tuple, while for composite there might be more of them. Each tuple consists of ID of scalar specialization constant, its location within a composite (offset in bytes from the beginning or 0 if it is not an element of a composite specialization constant) and its size. For example, for the following structure: struct A { int a; float b; }; struct POD { A a[2]; int b; }; List of tuples will look like: { ID0, 0, 4 }, // .a[0].a { ID1, 4, 4 }, // .a[0].b { ID2, 8, 4 }, // .a[1].a { ID3, 12, 4 }, // .a[1].b { ID4, 16, 4 }, // .b And for an interger specialization constant, the list of tuples will look like: { ID5, 0, 4 }
Definition at line 209 of file device_binary_image.hpp.
References SpecConstIDMap.
|
inline |
Definition at line 210 of file device_binary_image.hpp.
References SpecConstDefaultValuesMap.
|
inline |
Definition at line 229 of file device_binary_image.hpp.
References VirtualFunctions.
|
protected |
Definition at line 160 of file device_binary_image.cpp.
References __SYCL_PROPERTY_SET_DEVICELIB_REQ_MASK, __SYCL_PROPERTY_SET_KERNEL_PARAM_OPT_INFO, __SYCL_PROPERTY_SET_PROGRAM_METADATA, __SYCL_PROPERTY_SET_SPEC_CONST_DEFAULT_VALUES_MAP, __SYCL_PROPERTY_SET_SPEC_CONST_MAP, __SYCL_PROPERTY_SET_SYCL_ASSERT_USED, __SYCL_PROPERTY_SET_SYCL_DEVICE_GLOBALS, __SYCL_PROPERTY_SET_SYCL_DEVICE_REQUIREMENTS, __SYCL_PROPERTY_SET_SYCL_EXPORTED_SYMBOLS, __SYCL_PROPERTY_SET_SYCL_HOST_PIPES, __SYCL_PROPERTY_SET_SYCL_IMPORTED_SYMBOLS, __SYCL_PROPERTY_SET_SYCL_VIRTUAL_FUNCTIONS, AssertUsed, Bin, sycl_device_binary_struct::BinaryStart, DeviceGlobals, DeviceLibReqMask, DeviceRequirements, ExportedSymbols, sycl_device_binary_struct::Format, Format, sycl::_V1::detail::ur::getBinaryImageFormat(), getSize(), HostPipes, ImportedSymbols, KernelParamOptInfo, sycl::_V1::detail::ur::mapDeviceBinaryPropertyToProgramMetadata(), ProgramMetadata, ProgramMetadataUR, SpecConstDefaultValuesMap, SpecConstIDMap, SYCL_DEVICE_BINARY_TYPE_NONE, and VirtualFunctions.
Referenced by sycl::_V1::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), and RTDeviceBinaryImage().
|
delete |
|
default |
|
virtual |
Reimplemented in sycl::_V1::detail::DynRTDeviceBinaryImage.
Definition at line 105 of file device_binary_image.cpp.
References Bin, sycl_device_binary_struct::BinaryEnd, sycl_device_binary_struct::BinaryStart, std::cerr, sycl_device_binary_struct::CompileOptions, sycl_device_binary_struct::DeviceTargetSpec, sycl_device_binary_struct::EntriesBegin, sycl_device_binary_struct::EntriesEnd, sycl_device_binary_struct::Format, sycl_device_binary_struct::Kind, sycl_device_binary_struct::LinkOptions, _sycl_device_binary_property_set_struct::Name, _sycl_device_binary_property_set_struct::PropertiesBegin, _sycl_device_binary_property_set_struct::PropertiesEnd, sycl_device_binary_struct::PropertySetsBegin, sycl_device_binary_struct::PropertySetsEnd, and sycl_device_binary_struct::Version.
Referenced by sycl::_V1::detail::ProgramManager::getDeviceImage(), and sycl::_V1::detail::DynRTDeviceBinaryImage::print().
|
inline |
Definition at line 152 of file device_binary_image.hpp.
References getFormat(), and SYCL_DEVICE_BINARY_TYPE_SPIRV.
Referenced by sycl::_V1::detail::ProgramManager::getBuiltURProgram().
|
protected |
Definition at line 247 of file device_binary_image.hpp.
Referenced by getAssertUsed(), and init().
|
protected |
Definition at line 240 of file device_binary_image.hpp.
Referenced by dump(), sycl::_V1::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), get(), getCompileOptions(), getFormat(), getImageID(), getLinkOptions(), getProperty(), getSize(), init(), print(), RTDeviceBinaryImage(), and sycl::_V1::detail::DynRTDeviceBinaryImage::~DynRTDeviceBinaryImage().
|
protected |
Definition at line 251 of file device_binary_image.hpp.
Referenced by getDeviceGlobals(), and init().
|
protected |
Definition at line 245 of file device_binary_image.hpp.
Referenced by getDeviceLibReqMask(), and init().
|
protected |
Definition at line 252 of file device_binary_image.hpp.
Referenced by getDeviceRequirements(), and init().
|
protected |
Definition at line 249 of file device_binary_image.hpp.
Referenced by getExportedSymbols(), and init().
|
protected |
Definition at line 242 of file device_binary_image.hpp.
Referenced by getFormat(), and init().
|
protected |
Definition at line 253 of file device_binary_image.hpp.
Referenced by getHostPipes(), and init().
|
protected |
Definition at line 250 of file device_binary_image.hpp.
Referenced by getImportedSymbols(), and init().
|
protected |
Definition at line 246 of file device_binary_image.hpp.
Referenced by getKernelParamOptInfo(), and init().
|
protected |
Definition at line 248 of file device_binary_image.hpp.
Referenced by getProgramMetadata(), and init().
|
protected |
Definition at line 256 of file device_binary_image.hpp.
Referenced by getProgramMetadataUR(), and init().
|
protected |
Definition at line 244 of file device_binary_image.hpp.
Referenced by getSpecConstantsDefaultValues(), and init().
|
protected |
Definition at line 243 of file device_binary_image.hpp.
Referenced by getSpecConstants(), and init().
|
protected |
Definition at line 254 of file device_binary_image.hpp.
Referenced by getVirtualFunctions(), and init().