File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 (),
You can’t perform that action at this time.
0 commit comments