@@ -22,7 +22,7 @@ namespace INTEL {
22
22
using byte = unsigned char ;
23
23
24
24
enum class compiled_code_format {
25
- SPIRV // the only format supported for now
25
+ spir_v // the only format supported for now
26
26
};
27
27
28
28
class device_arch {
@@ -63,7 +63,7 @@ class online_compile_error : public sycl::exception {
63
63
};
64
64
65
65
// / Designates a source language for the online compiler.
66
- enum class source_language { OpenCL_C, CM };
66
+ enum class source_language { opencl_c, cm };
67
67
68
68
// / Represents an online compiler for the language given as template
69
69
// / parameter.
@@ -73,7 +73,7 @@ template <source_language Lang> class online_compiler {
73
73
// / given compiled code format. Produces device code is 64-bit.
74
74
// / The created compiler is "optimistic" - it assumes all applicable SYCL
75
75
// / device capabilities are supported by the target device(s).
76
- online_compiler (compiled_code_format fmt = compiled_code_format::SPIRV )
76
+ online_compiler (compiled_code_format fmt = compiled_code_format::spir_v )
77
77
: OutputFormat(fmt), OutputFormatVersion({0 , 0 }),
78
78
DeviceArch (device_arch::any), Is64Bit(true ), DeviceStepping(" " ) {}
79
79
@@ -83,7 +83,7 @@ template <source_language Lang> class online_compiler {
83
83
// / contradictory or not supported - e.g. if the source language is not
84
84
// / supported for given device type.
85
85
online_compiler (sycl::info::device_type dev_type, device_arch arch,
86
- compiled_code_format fmt = compiled_code_format::SPIRV )
86
+ compiled_code_format fmt = compiled_code_format::spir_v )
87
87
: OutputFormat(fmt), OutputFormatVersion({0 , 0 }), DeviceArch(arch),
88
88
Is64Bit (true ), DeviceStepping(" " ) {}
89
89
@@ -153,7 +153,7 @@ template <source_language Lang> class online_compiler {
153
153
template <>
154
154
template <>
155
155
std::vector<byte>
156
- online_compiler<source_language::OpenCL_C >::compile(const std::string &src) {
156
+ online_compiler<source_language::opencl_c >::compile(const std::string &src) {
157
157
// real implementation will call some non-templated impl function here
158
158
return std::vector<byte>{};
159
159
}
@@ -164,7 +164,7 @@ online_compiler<source_language::OpenCL_C>::compile(const std::string &src) {
164
164
// / OpenCL JIT compiler options must be supported
165
165
template <>
166
166
template <>
167
- std::vector<byte> online_compiler<source_language::OpenCL_C >::compile(
167
+ std::vector<byte> online_compiler<source_language::opencl_c >::compile(
168
168
const std::string &src, const std::vector<std::string> &options) {
169
169
// real implementation will call some non-templated impl function here
170
170
return std::vector<byte>{};
@@ -174,7 +174,7 @@ std::vector<byte> online_compiler<source_language::OpenCL_C>::compile(
174
174
template <>
175
175
template <>
176
176
std::vector<byte>
177
- online_compiler<source_language::CM >::compile(const std::string &src) {
177
+ online_compiler<source_language::cm >::compile(const std::string &src) {
178
178
// real implementation will call some non-templated impl function here
179
179
return std::vector<byte>{};
180
180
}
@@ -183,7 +183,7 @@ online_compiler<source_language::CM>::compile(const std::string &src) {
183
183
// / @param options - compilation options (implementation defined)
184
184
template <>
185
185
template <>
186
- std::vector<byte> online_compiler<source_language::CM >::compile(
186
+ std::vector<byte> online_compiler<source_language::cm >::compile(
187
187
const std::string &src, const std::vector<std::string> &options) {
188
188
// real implementation will call some non-templated impl function here
189
189
return std::vector<byte>{};
0 commit comments