File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,24 @@ def _check_multi_kernel_program(prog):
48
48
assert type (addKernel .addressof_ref ()) is int
49
49
assert type (axpyKernel .addressof_ref ()) is int
50
50
51
+ for krn in [addKernel , axpyKernel ]:
52
+ wgsz = krn .work_group_size
53
+ assert type (wgsz ) is int
54
+ pwgszm = krn .preferred_work_group_size_multiple
55
+ assert type (pwgszm ) is int
56
+ pmsz = krn .private_mem_size
57
+ assert type (pmsz ) is int
58
+ vmnsg = krn .max_num_sub_groups
59
+ assert type (vmnsg ) is int
60
+ v = krn .max_sub_group_size
61
+ assert (
62
+ v == NotImplemented
63
+ ), "SyclKernel.max_sub_group_size acquired implementation, fix the test"
64
+ cmnsg = krn .compile_num_sub_groups
65
+ assert type (cmnsg ) is int
66
+ cmsgsz = krn .compile_num_sub_groups
67
+ assert type (cmsgsz ) is int
68
+
51
69
52
70
def test_create_program_from_source_ocl ():
53
71
oclSrc = " \
You can’t perform that action at this time.
0 commit comments