Skip to content

Commit e345492

Browse files
Fixed test for sycl_kernel, added test for exercising equal testing for SyclDevice and object of another type
1 parent 71b59e5 commit e345492

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

dpctl/tests/test_sycl_device.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ def test_hashing_of_device():
129129
assert device_dict
130130

131131

132+
def test_equal():
133+
d1 = dpctl.SyclDevice()
134+
d2 = dpctl.SyclDevice()
135+
assert d1 != Ellipsis
136+
assert d1 == d2
137+
138+
132139
list_of_supported_aspects = [
133140
"cpu",
134141
"gpu",

dpctl/tests/test_sycl_program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _check_multi_kernel_program(prog):
6565
), "SyclKernel.max_sub_group_size acquired implementation, fix the test"
6666
cmnsg = krn.compile_num_sub_groups
6767
assert type(cmnsg) is int
68-
cmsgsz = krn.compile_num_sub_groups
68+
cmsgsz = krn.compile_sub_group_size
6969
assert type(cmsgsz) is int
7070

7171

0 commit comments

Comments
 (0)