Skip to content

Commit 0448555

Browse files
author
Alexander Batashev
committed
Fix asserts
Signed-off-by: Alexander Batashev <[email protected]>
1 parent 0a8d99d commit 0448555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void program_impl::create_cl_program_with_il(OSModuleHandle M) {
273273
}
274274

275275
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");
277277
const char *Src = Source.c_str();
278278
size_t Size = Source.size();
279279
PI_CALL(piclProgramCreateWithSource)(
@@ -379,7 +379,7 @@ void program_impl::throw_if_state_is_not(program_state State) const {
379379

380380
void program_impl::create_pi_program_with_kernel_name(
381381
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");
383383
ProgramManager &PM = ProgramManager::getInstance();
384384
DeviceImage &Img = PM.getDeviceImage(Module, KernelName, get_context());
385385
MProgram = PM.createPIProgram(Img, get_context());

0 commit comments

Comments
 (0)