dpctl.program.SyclKernel
- class dpctl.program.SyclKernel
Attributes:
Returns the number of sub-groups specified by this kernel, or 0 (if not specified).
Returns the required sub-group size specified by this kernel, or 0 (if not specified).
Returns the maximum number of sub-groups for this kernel.
Returns the maximum sub-groups size for this kernel.
Property equivalent to method call SyclKernel.get_num_args()
Returns a value, of which work-group size is preferred to be a multiple, for executing the kernel on the device it was built for.
Returns the minimum amount of private memory, in bytes, used by each work-item in the kernel.
Returns the maximum number of work-items in a work-group that can be used to execute the kernel on device it was built for.
Public methods:
Returns the address of the C API
DPCTLSyclKernelRef
pointer as asize_t
.Returns the name of the
sycl::kernel
function.Returns the number of arguments for this kernel function.
Attributes
- SyclKernel.compile_num_sub_groups
Returns the number of sub-groups specified by this kernel, or 0 (if not specified).
- SyclKernel.compile_sub_group_size
Returns the required sub-group size specified by this kernel, or 0 (if not specified).
- SyclKernel.max_num_sub_groups
Returns the maximum number of sub-groups for this kernel.
- SyclKernel.max_sub_group_size
Returns the maximum sub-groups size for this kernel.
- SyclKernel.num_args
Property equivalent to method call SyclKernel.get_num_args()
- SyclKernel.preferred_work_group_size_multiple
Returns a value, of which work-group size is preferred to be a multiple, for executing the kernel on the device it was built for.
- SyclKernel.private_mem_size
Returns the minimum amount of private memory, in bytes, used by each work-item in the kernel.
- SyclKernel.work_group_size
Returns the maximum number of work-items in a work-group that can be used to execute the kernel on device it was built for.
Public methods
- dpctl.program.SyclKernel.addressof_ref(self)
Returns the address of the C API
DPCTLSyclKernelRef
pointer as asize_t
.- Returns:
The address of the
DPCTLSyclKernelRef
pointer used to create thisdpctl.SyclKernel
object cast to asize_t
.
- dpctl.program.SyclKernel.get_function_name(self)
Returns the name of the
sycl::kernel
function.
- dpctl.program.SyclKernel.get_num_args(self)
Returns the number of arguments for this kernel function.