File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ void program_impl::create_cl_program_with_il(OSModuleHandle M) {
273
273
}
274
274
275
275
void program_impl::create_cl_program_with_source (const string_class &Source) {
276
- assert (!Program && " This program already has an encapsulated cl_program" );
276
+ assert (!MProgram && " This program already has an encapsulated cl_program" );
277
277
const char *Src = Source.c_str ();
278
278
size_t Size = Source.size ();
279
279
PI_CALL (piclProgramCreateWithSource)(
@@ -379,7 +379,7 @@ void program_impl::throw_if_state_is_not(program_state State) const {
379
379
380
380
void program_impl::create_pi_program_with_kernel_name (
381
381
OSModuleHandle Module, const string_class &KernelName) {
382
- assert (!Program && " This program already has an encapsulated PI program" );
382
+ assert (!MProgram && " This program already has an encapsulated PI program" );
383
383
ProgramManager &PM = ProgramManager::getInstance ();
384
384
DeviceImage &Img = PM.getDeviceImage (Module, KernelName, get_context ());
385
385
MProgram = PM.createPIProgram (Img, get_context ());
You can’t perform that action at this time.
0 commit comments