Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Slang Documentation
Slang Documentation
Back to top
View this page

TensorView<T>.InterlockedAdd¶

Description¶

Signature¶

void TensorView<T>.InterlockedAdd(
    uint index,
    T val,
    out T oldVal);

void TensorView<T>.InterlockedAdd<int N>(
    vector<uint, N> index,
    T val,
    out T oldVal);

Generic Parameters¶

N : int¶

Parameters¶

index : uint¶

val : T¶

oldVal : T¶

index : vector<uint, N>¶

Availability and Requirements¶

Defined for the following targets:

cuda¶

Available in all stages.

On this page
  • TensorView<T>.InterlockedAdd
    • Description
    • Signature
    • Generic Parameters
      • N : int
    • Parameters
      • index : uint
      • val : T
      • oldVal : T
      • index : vector<uint, N>
    • Availability and Requirements
      • cuda