Skip to content

Commit 5e670eb

Browse files
committed
fix namespace in test_sycl_program
1 parent 28ce170 commit 5e670eb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

dpctl/tests/test_sycl_program.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ def test_create_kernel_bundle_with_composite_spec_const():
343343

344344

345345
def test_specialization_constant_addressof_ref():
346-
sp = dpctl_prog.SpecializationConstant(0, "i4", 42)
346+
sp = dpc.SpecializationConstant(0, "i4", 42)
347347
ref = sp.addressof_ref()
348348
assert type(ref) is int
349349
assert ref != 0
350350

351-
sp2 = dpctl_prog.SpecializationConstant(1, "f4", 3.14)
351+
sp2 = dpc.SpecializationConstant(1, "f4", 3.14)
352352
ref2 = sp2.addressof_ref()
353353
assert type(ref2) is int
354354
assert ref2 != 0
@@ -402,10 +402,10 @@ def test_spirv_specializations_parser_invalid_spirv():
402402

403403

404404
def test_spec_const_equality():
405-
sp1 = dpctl_prog.SpecializationConstant(0, "i4", 42)
406-
sp2 = dpctl_prog.SpecializationConstant(0, "i4", 42)
407-
sp3 = dpctl_prog.SpecializationConstant(1, "i4", 42)
408-
sp4 = dpctl_prog.SpecializationConstant(0, "f4", 42.0)
405+
sp1 = dpc.SpecializationConstant(0, "i4", 42)
406+
sp2 = dpc.SpecializationConstant(0, "i4", 42)
407+
sp3 = dpc.SpecializationConstant(1, "i4", 42)
408+
sp4 = dpc.SpecializationConstant(0, "f4", 42.0)
409409

410410
assert sp1 == sp2
411411
assert sp1 != sp3

0 commit comments

Comments
 (0)