We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a460d commit ff942e9Copy full SHA for ff942e9
sycl/include/CL/sycl/detail/kernel_desc.hpp
@@ -59,8 +59,12 @@ template <class Name> struct SpecConstantInfo {
59
#if __cplusplus >= 201703L
60
// Translates SYCL 2020 specialization constant type to its name.
61
template <auto &SpecName> const char *get_spec_constant_symbolic_ID() {
62
+#ifdef SYCL_LANGUAGE_VERSION
63
return __builtin_unique_stable_name(
64
specialization_id_name_generator<SpecName>);
65
+#else
66
+ return "";
67
+#endif
68
}
69
#endif
70
0 commit comments