cupyx.jit.atomic_max#

cupyx.jit.atomic_max(array, index, value, alt_value=None) = <cupyx.jit function>#

调用 atomicMax 函数以原子方式操作 array[index]。详细解释请参阅 原子函数

参数:
  • array – 一个用于索引的 cupy.ndarray

  • index – 一个有效的索引,使得可以计算对应数组元素的地址 array[index]

  • value – Represent the value to use for the specified operation. For the case of atomic_cas, this is the value for array[index] to compare with.

  • alt_value – Only used in atomic_cas to represent the value to swap to.