This struct is a record of the device binary information. More...
#include <CL/sycl/detail/pi.h>
Public Attributes | |
uint16_t | Version |
version of this structure - for backward compatibility; all modifications which change order/type/offsets of existing fields should increment the version. More... | |
uint8_t | Kind |
the type of offload model the binary employs; must be 4 for SYCL More... | |
uint8_t | Format |
format of the binary data - SPIR-V, LLVM IR bitcode,... More... | |
const char * | DeviceTargetSpec |
null-terminated string representation of the device's target architecture which holds one of: __SYCL_PI_DEVICE_BINARY_TARGET_UNKNOWN - unknown __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV32 - general value for 32-bit OpenCL devices __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64 - general value for 64-bit OpenCL devices __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_X86_64 - 64-bit OpenCL CPU device __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_GEN - GEN GPU device (64-bit OpenCL) __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_FPGA - 64-bit OpenCL FPGA device More... | |
const char * | CompileOptions |
a null-terminated string; target- and compiler-specific options which are suggested to use to "compile" program at runtime More... | |
const char * | LinkOptions |
a null-terminated string; target- and compiler-specific options which are suggested to use to "link" program at runtime More... | |
const char * | ManifestStart |
Pointer to the manifest data start. More... | |
const char * | ManifestEnd |
Pointer to the manifest data end. More... | |
const unsigned char * | BinaryStart |
Pointer to the target code start. More... | |
const unsigned char * | BinaryEnd |
Pointer to the target code end. More... | |
_pi_offload_entry | EntriesBegin |
the offload entry table More... | |
_pi_offload_entry | EntriesEnd |
pi_device_binary_property_set | PropertySetsBegin |
pi_device_binary_property_set | PropertySetsEnd |
This struct is a record of the device binary information.
If the Kind field denotes a portable binary type (SPIR-V or LLVM IR), the DeviceTargetSpec field can still be specific and denote e.g. FPGA target. It must match the __tgt_device_image structure generated by the clang-offload-wrapper tool when their Version field match.
const unsigned char* pi_device_binary_struct::BinaryEnd |
Pointer to the target code end.
Definition at line 792 of file pi.h.
Referenced by cl::sycl::detail::ProgramManager::createPIProgram(), and cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
const unsigned char* pi_device_binary_struct::BinaryStart |
Pointer to the target code start.
Definition at line 790 of file pi.h.
Referenced by cl::sycl::detail::ProgramManager::createPIProgram(), cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), cl::sycl::detail::PersistentDeviceCodeCache::getCacheItemPath(), and cl::sycl::detail::pi::DeviceBinaryImage::init().
const char* pi_device_binary_struct::CompileOptions |
a null-terminated string; target- and compiler-specific options which are suggested to use to "compile" program at runtime
Definition at line 781 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
const char* pi_device_binary_struct::DeviceTargetSpec |
null-terminated string representation of the device's target architecture which holds one of: __SYCL_PI_DEVICE_BINARY_TARGET_UNKNOWN - unknown __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV32 - general value for 32-bit OpenCL devices __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64 - general value for 64-bit OpenCL devices __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_X86_64 - 64-bit OpenCL CPU device __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_GEN - GEN GPU device (64-bit OpenCL) __SYCL_PI_DEVICE_BINARY_TARGET_SPIRV64_FPGA - 64-bit OpenCL FPGA device
Definition at line 778 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), and cl::sycl::detail::getBinImageState().
_pi_offload_entry pi_device_binary_struct::EntriesBegin |
the offload entry table
Definition at line 794 of file pi.h.
Referenced by cl::sycl::detail::ProgramManager::addImages(), and cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
_pi_offload_entry pi_device_binary_struct::EntriesEnd |
Definition at line 795 of file pi.h.
Referenced by cl::sycl::detail::ProgramManager::addImages(), and cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
uint8_t pi_device_binary_struct::Format |
format of the binary data - SPIR-V, LLVM IR bitcode,...
Definition at line 766 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(), and cl::sycl::detail::pi::DeviceBinaryImage::init().
uint8_t pi_device_binary_struct::Kind |
the type of offload model the binary employs; must be 4 for SYCL
Definition at line 764 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
const char* pi_device_binary_struct::LinkOptions |
a null-terminated string; target- and compiler-specific options which are suggested to use to "link" program at runtime
Definition at line 784 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
const char* pi_device_binary_struct::ManifestEnd |
Pointer to the manifest data end.
Definition at line 788 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
const char* pi_device_binary_struct::ManifestStart |
Pointer to the manifest data start.
Definition at line 786 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().
pi_device_binary_property_set pi_device_binary_struct::PropertySetsBegin |
pi_device_binary_property_set pi_device_binary_struct::PropertySetsEnd |
uint16_t pi_device_binary_struct::Version |
version of this structure - for backward compatibility; all modifications which change order/type/offsets of existing fields should increment the version.
Definition at line 762 of file pi.h.
Referenced by cl::sycl::detail::DynRTDeviceBinaryImage::DynRTDeviceBinaryImage().