@@ -69,14 +69,14 @@ program_impl::program_impl(
69
69
Programs.push_back (Prg->MProgram );
70
70
}
71
71
PI_CALL_THROW (piProgramLink, compile_program_error)(
72
- MContext->getHandleRef (), Devices.size (),
73
- Devices. data (), LinkOptions.c_str (), Programs.size (), Programs.data (),
74
- nullptr , nullptr , &MProgram);
72
+ MContext->getHandleRef (), Devices.size (), Devices. data (),
73
+ LinkOptions.c_str (), Programs.size (), Programs.data (), nullptr , nullptr ,
74
+ &MProgram);
75
75
}
76
76
}
77
77
78
78
program_impl::program_impl (ContextImplPtr Context, RT::PiProgram Program)
79
- : MProgram(Program), MContext(Context), MLinkable(true ) {
79
+ : MProgram(Program), MContext(Context), MLinkable(true ) {
80
80
81
81
// TODO handle the case when cl_program build is in progress
82
82
cl_uint NumDevices;
@@ -86,7 +86,8 @@ program_impl::program_impl(ContextImplPtr Context, RT::PiProgram Program)
86
86
PI_CALL (piProgramGetInfo)(Program, CL_PROGRAM_DEVICES,
87
87
sizeof (RT::PiDevice) * NumDevices, PiDevices.data (),
88
88
nullptr );
89
- vector_class<device> SyclContextDevices = MContext->get_info <info::context::devices>();
89
+ vector_class<device> SyclContextDevices =
90
+ MContext->get_info <info::context::devices>();
90
91
91
92
// Keep only the subset of the devices (associated with context) that
92
93
// were actually used to create the program.
@@ -212,9 +213,8 @@ void program_impl::link(string_class LinkOptions) {
212
213
check_device_feature_support<info::device::is_linker_available>(MDevices);
213
214
vector_class<RT::PiDevice> Devices (get_pi_devices ());
214
215
PI_CALL_THROW (piProgramLink, compile_program_error)(
215
- MContext->getHandleRef (), Devices.size (),
216
- Devices.data (), LinkOptions.c_str (), 1 , &MProgram, nullptr , nullptr ,
217
- &MProgram);
216
+ MContext->getHandleRef (), Devices.size (), Devices.data (),
217
+ LinkOptions.c_str (), 1 , &MProgram, nullptr , nullptr , &MProgram);
218
218
MLinkOptions = LinkOptions;
219
219
MBuildOptions = LinkOptions;
220
220
}
@@ -271,9 +271,8 @@ void program_impl::create_cl_program_with_source(const string_class &Source) {
271
271
assert (!MProgram && " This program already has an encapsulated cl_program" );
272
272
const char *Src = Source.c_str ();
273
273
size_t Size = Source.size ();
274
- PI_CALL (piclProgramCreateWithSource)(
275
- MContext->getHandleRef (), 1 , &Src, &Size,
276
- &MProgram);
274
+ PI_CALL (piclProgramCreateWithSource)(MContext->getHandleRef (), 1 , &Src, &Size,
275
+ &MProgram);
277
276
}
278
277
279
278
void program_impl::compile (const string_class &Options) {
0 commit comments