cupyx.jit.cg._GridGroup#

class cupyx.jit.cg._GridGroup[source]#

A handle to the current grid group. Must be created via this_grid().

Methods

assign(var, value)[source]#
Parameters
  • var (Data) –

  • value (Data) –

Return type

str

block_index()[source]#

3-Dimensional index of the block within the launched grid.

block_rank()[source]#

Rank of the calling block within [0, num_blocks).

declvar(x, init)[source]#
Parameters
Return type

str

dim_blocks()[source]#

Dimensions of the launched grid in units of blocks.

group_dim()[source]#

Dimensions of the launched grid in units of blocks.

is_valid()[source]#

Returns whether the grid_group can synchronize.

num_blocks()[source]#

Total number of blocks in the group.

num_threads()[source]#

Total number of threads in the group.

size()[source]#

Total number of threads in the group.

sync()[source]#

Synchronize the threads named in the group.

thread_rank()[source]#

Rank of the calling thread within [0, num_threads).

__eq__(value, /)#

Return self==value.

__ne__(value, /)#

Return self!=value.

__lt__(value, /)#

Return self<value.

__le__(value, /)#

Return self<=value.

__gt__(value, /)#

Return self>value.

__ge__(value, /)#

Return self>=value.

Attributes

child_type = None#