Skip to content

Commit 7585efb

Browse files
committed
Review feedback
Signed-off-by: Julian Oppermann <[email protected]>
1 parent ba0e6f8 commit 7585efb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/jit_compiler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,13 +1176,14 @@ std::vector<uint8_t> jit_compiler::compileSYCL(
11761176
// RegisteredKernelNames may contain template specializations, so we just put
11771177
// them in main() which ensures they are instantiated.
11781178
std::ostringstream ss;
1179+
ss << SYCLSource << '\n';
11791180
ss << "int main() {\n";
11801181
for (const std::string &KernelName : RegisteredKernelNames) {
11811182
ss << " (void)" << KernelName << ";\n";
11821183
}
11831184
ss << " return 0;\n}\n" << std::endl;
11841185

1185-
std::string FinalSource = SYCLSource + ss.str();
1186+
std::string FinalSource = ss.str();
11861187

11871188
std::string SYCLFileName = Id + ".cpp";
11881189
::jit_compiler::InMemoryFile SourceFile{SYCLFileName.c_str(),

0 commit comments

Comments
 (0)