cupyx.jit.cg._ThreadBlockGroup

class cupyx.jit.cg._ThreadBlockGroup[source]

A handle to the current thread block group. Must be created via this_thread_block().

Methods

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

  • value (Data) –

Return type

str

declvar(x, init)[source]
Parameters
  • x (str) –

  • init (Data) –

Return type

str

dim_threads()[source]

Dimensions of the launched block in units of threads.

group_dim()[source]

Dimensions of the launched block in units of threads.

group_index()[source]

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

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_index()[source]

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

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