warp.atomic_cas#
- warp.atomic_cas(
- arr: Array[Any],
- i: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i]ifarr[i]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: Array[Any],
- i: Int,
- j: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j]ifarr[i,j]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: Array[Any],
- i: Int,
- j: Int,
- k: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k]ifarr[i,j,k]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: Array[Any],
- i: Int,
- j: Int,
- k: Int,
- l: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k,l]ifarr[i,j,k,l]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: FabricArray[Any],
- i: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i]ifarr[i]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: FabricArray[Any],
- i: Int,
- j: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j]ifarr[i,j]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: FabricArray[Any],
- i: Int,
- j: Int,
- k: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k]ifarr[i,j,k]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: FabricArray[Any],
- i: Int,
- j: Int,
- k: Int,
- l: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k,l]ifarr[i,j,k,l]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: IndexedFabricArray[Any],
- i: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i]ifarr[i]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: IndexedFabricArray[Any],
- i: Int,
- j: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j]ifarr[i,j]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: IndexedFabricArray[Any],
- i: Int,
- j: Int,
- k: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k]ifarr[i,j,k]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.
- warp.atomic_cas(
- arr: IndexedFabricArray[Any],
- i: Int,
- j: Int,
- k: Int,
- l: Int,
- compare: Any,
- value: Any,
Kernel
Atomically compare and swap
valuewitharr[i,j,k,l]ifarr[i,j,k,l]equalscompare, and return the old value.The operation is only atomic on a per-component basis for vectors and matrices.