File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ cdef class SyclKernel:
102
102
"""
103
103
return int (< size_t> self ._kernel_ref)
104
104
105
+ @property
106
+ def num_args (self ):
107
+ """ Property equivalent to method call `SyclKernel.get_num_args()`
108
+ """
109
+ return self .get_num_args()
110
+
105
111
@property
106
112
def work_group_size (self ):
107
113
""" Returns the maximum number of work-items in a work-group that can
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ def _check_multi_kernel_program(prog):
49
49
assert type (axpyKernel .addressof_ref ()) is int
50
50
51
51
for krn in [addKernel , axpyKernel ]:
52
+ na = krn .num_args
53
+ assert na == krn .get_num_args ()
52
54
wgsz = krn .work_group_size
53
55
assert type (wgsz ) is int
54
56
pwgszm = krn .preferred_work_group_size_multiple
You can’t perform that action at this time.
0 commit comments