Skip to content

Commit 5381ae8

Browse files
committed
Fix formatting, address review comments.
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent b2a7eca commit 5381ae8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

sycl/include/CL/sycl/INTEL/online_compiler.hpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include <CL/sycl/detail/defines_elementary.hpp> // for __SYCL_INLINE_NAMESPACE
9+
#pragma once
10+
1011
#include <CL/sycl/context.hpp>
12+
#include <CL/sycl/detail/defines_elementary.hpp> // for __SYCL_INLINE_NAMESPACE
1113
#include <CL/sycl/device.hpp>
1214

1315
#include <memory>
@@ -95,7 +97,7 @@ template <source_language Lang> class online_compiler {
9597
/// can be different for different languages.
9698
/// Throws online_compile_error if compilation is not successful.
9799
template <typename... Tys>
98-
std::vector<byte> compile(const std::string &src, const Tys&... args);
100+
std::vector<byte> compile(const std::string &src, const Tys &... args);
99101

100102
/// Sets the compiled code format of the compilation target and returns *this.
101103
online_compiler<Lang> &setOutputFormat(compiled_code_format fmt);
@@ -150,8 +152,8 @@ template <source_language Lang> class online_compiler {
150152
/// @param src - contents of the source
151153
template <>
152154
template <>
153-
std::vector<byte> online_compiler<source_language::OpenCL_C>::compile(
154-
const std::string &src) {
155+
std::vector<byte>
156+
online_compiler<source_language::OpenCL_C>::compile(const std::string &src) {
155157
// real implementation will call some non-templated impl function here
156158
return std::vector<byte>{};
157159
}
@@ -171,8 +173,8 @@ std::vector<byte> online_compiler<source_language::OpenCL_C>::compile(
171173
/// Compiles given CM source.
172174
template <>
173175
template <>
174-
std::vector<byte> online_compiler<source_language::CM>::compile(
175-
const std::string &src) {
176+
std::vector<byte>
177+
online_compiler<source_language::CM>::compile(const std::string &src) {
176178
// real implementation will call some non-templated impl function here
177179
return std::vector<byte>{};
178180
}
@@ -187,6 +189,6 @@ std::vector<byte> online_compiler<source_language::CM>::compile(
187189
return std::vector<byte>{};
188190
}
189191

190-
} // namespace sycl
191192
} // namespace INTEL
192-
} // __SYCL_INLINE_NAMESPACE(cl)
193+
} // namespace sycl
194+
} // __SYCL_INLINE_NAMESPACE(cl)

0 commit comments

Comments
 (0)