warp.atomic_add#

warp.atomic_add(arr: Array[Any], i: Int, value: Any) Any#
  • Kernel

  • Differentiable

Atomically adds value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] += value.

warp.atomic_add(
arr: Array[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] += value.

warp.atomic_add(
arr: Array[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] += value.

warp.atomic_add(
arr: Array[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] += value.

warp.atomic_add(
arr: FabricArray[Any],
i: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] += value.

warp.atomic_add(
arr: FabricArray[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] += value.

warp.atomic_add(
arr: FabricArray[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] += value.

warp.atomic_add(
arr: FabricArray[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] += value.

warp.atomic_add(
arr: IndexedFabricArray[Any],
i: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i] and returns the original value of arr[i].

This function is automatically invoked when using the syntax arr[i] += value.

warp.atomic_add(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j] and returns the original value of arr[i,j].

This function is automatically invoked when using the syntax arr[i,j] += value.

warp.atomic_add(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
k: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k] and returns the original value of arr[i,j,k].

This function is automatically invoked when using the syntax arr[i,j,k] += value.

warp.atomic_add(
arr: IndexedFabricArray[Any],
i: Int,
j: Int,
k: Int,
l: Int,
value: Any,
) Any
  • Kernel

  • Differentiable

Atomically adds value onto arr[i,j,k,l] and returns the original value of arr[i,j,k,l].

This function is automatically invoked when using the syntax arr[i,j,k,l] += value.