DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
22 namespace experimental {
24 using byte =
unsigned char;
32 static constexpr
int any = 0;
56 operator int() {
return Val; }
81 : OutputFormat(fmt), OutputFormatVersion({0, 0}),
83 Is64Bit(
true), DeviceStepping(
"") {}
92 : OutputFormat(fmt), OutputFormatVersion({0, 0}), DeviceType(dev_type),
93 DeviceArch(arch), Is64Bit(
true), DeviceStepping(
"") {}
102 Is64Bit(
true), DeviceStepping(
"") {}
110 template <
typename... Tys>
111 std::vector<byte>
compile(
const std::string &src,
const Tys &... args);
122 OutputFormatVersion = {major, minor};
162 std::pair<int, int> OutputFormatVersion;
174 std::string DeviceStepping;
177 void *CompileToSPIRVHandle =
nullptr;
178 void *FreeSPIRVOutputsHandle =
nullptr;
190 __SYCL_EXPORT std::vector<byte>
192 const std::string &src,
const std::vector<std::string> &options);
200 return compile(src, std::vector<std::string>{});
209 const std::string &src,
const std::vector<std::string> &options);
216 return compile(src, std::vector<std::string>{});
225 "use 'ext::intel::experimental'
instead") intel {
226 using namespace ext::intel::experimental;
online_compiler< Lang > & setOutputFormatVersion(int major, int minor)
Sets the compiled code format version of the compilation target and returns *this.
online_compiler(const sycl::device &)
Constructs online compiler for the target specified by given SYCL device.
#define __SYCL2020_DEPRECATED(message)
A unique identifier of an item in an index space.
online_compile_error(const std::string &Msg)
detail::enable_if_t< detail::is_sigeninteger< T >::value, int > any(T x) __NOEXC
online_compiler< Lang > & setTargetDeviceArch(device_arch arch)
Sets the device architecture of the compilation target and returns *this.
online_compiler(sycl::info::device_type dev_type, device_arch arch, compiled_code_format fmt=compiled_code_format::spir_v)
Constructs online compiler which targets given architecture and produces given compiled code format.
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
online_compiler< Lang > & setOutputFormat(compiled_code_format fmt)
Sets the compiled code format of the compilation target and returns *this.
kernel_bundle< bundle_state::object > compile(const kernel_bundle< bundle_state::input > &InputBundle, const std::vector< device > &Devs, const property_list &PropList={})
online_compiler< Lang > & set32bitTarget()
Makes the compilation target 32-bit and returns *this.
online_compiler< Lang > & set64bitTarget()
Makes the compilation target 64-bit and returns *this.
We provide new interfaces for matrix muliply in this patch:
Represents an online compiler for the language given as template parameter.
online_compiler< Lang > & setTargetDeviceStepping(const std::string &id)
Sets implementation-defined target device stepping of the compilation target and returns *this.
Represents an error happend during online compilation.
online_compiler< Lang > & setTargetDeviceType(sycl::info::device_type type)
Sets the device type of the compilation target and returns *this.
source_language
Designates a source language for the online compiler.
online_compiler(compiled_code_format fmt=compiled_code_format::spir_v)
Constructs online compiler which can target any device and produces given compiled code format.
detail::enable_if_t< detail::is_sigeninteger< T >::value, int > all(T x) __NOEXC
#define __SYCL_INLINE_NAMESPACE(X)