Skip to content

Commit 01fe513

Browse files
committed
GCC<8 support
1 parent 126e39a commit 01fe513

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sycl/source/detail/kernel_compiler/kernel_compiler_sycl.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ SYCL_to_SPIRV(const std::string &SYCLSource, include_pairs_t IncludePairs,
3636
throw sycl::exception(sycl::errc::build,
3737
"kernel_compiler does not support GCC<8");
3838
}
39+
40+
std::string userArgsAsString(const std::vector<std::string> &UserArguments) {
41+
return std::accumulate(UserArguments.begin(), UserArguments.end(),
42+
std::string(""),
43+
[](const std::string &A, const std::string &B) {
44+
return A.empty() ? B : A + " " + B;
45+
});
46+
}
47+
3948
} // namespace detail
4049
} // namespace ext::oneapi::experimental
4150
} // namespace _V1

0 commit comments

Comments
 (0)