numba_vulkan.stubs#
Functions that only have a meaning inside a kernel.
Attributes#
Functions#
|
Index of the current invocation along |
|
Index of the current invocation within its workgroup along |
|
Index of the current workgroup along |
|
Number of invocations per workgroup along |
|
Number of workgroups along |
|
Wait until every invocation of the workgroup has reached this point. |
Module Contents#
- numba_vulkan.stubs.global_id(axis)#
Index of the current invocation along
axisof the dispatch grid.
- numba_vulkan.stubs.local_id(axis)#
Index of the current invocation within its workgroup along
axis.Like
cuda.threadIdx.
- numba_vulkan.stubs.group_id(axis)#
Index of the current workgroup along
axis, likecuda.blockIdx.
- numba_vulkan.stubs.local_size(axis)#
Number of invocations per workgroup along
axis, likecuda.blockDim.
- numba_vulkan.stubs.num_groups(axis)#
Number of workgroups along
axisof the dispatch, likecuda.gridDim.
- numba_vulkan.stubs.barrier()#
Wait until every invocation of the workgroup has reached this point.
Like
cuda.syncthreads: writes to shared and global memory made before the barrier are visible to the whole workgroup after it. All invocations of a workgroup must reach the same barrier, so it must not be called under a condition that differs between them.
- numba_vulkan.stubs.syncthreads#
- numba_vulkan.stubs.atomic#
- numba_vulkan.stubs.local#
- numba_vulkan.stubs.subgroup#