TensorView<T>.InterlockedCompareExchange

Description

Signature

void TensorView<T>.InterlockedCompareExchange(
    uint index,
    int compare,
    int val)
    where T == int;

void TensorView<T>.InterlockedCompareExchange<int N>(
    vector<uint, N> index,
    int compare,
    int val)
    where T == int;

void TensorView<T>.InterlockedCompareExchange(
    uint index,
    uint compare,
    uint val)
    where T == uint;

void TensorView<T>.InterlockedCompareExchange<int N>(
    vector<uint, N> index,
    uint compare,
    uint val)
    where T == uint;

void TensorView<T>.InterlockedCompareExchange(
    uint index,
    uint64_t compare,
    uint64_t val)
    where T == uint64_t;

void TensorView<T>.InterlockedCompareExchange<int N>(
    vector<uint, N> index,
    uint64_t compare,
    uint64_t val)
    where T == uint64_t;

void TensorView<T>.InterlockedCompareExchange(
    uint index,
    int64_t compare,
    int64_t val)
    where T == int64_t;

void TensorView<T>.InterlockedCompareExchange<int N>(
    vector<uint, N> index,
    int64_t compare,
    int64_t val)
    where T == int64_t;

void TensorView<T>.InterlockedCompareExchange(
    uint index,
    float compare,
    float val)
    where T == float;

void TensorView<T>.InterlockedCompareExchange<int N>(
    vector<uint, N> index,
    float compare,
    float val)
    where T == float;

Generic Parameters

N : int

Parameters

index : uint

compare : int

val : int

index : vector<uint, N>

compare : uint

val : uint

compare : uint64_t

val : uint64_t

compare : int64_t

val : int64_t

compare : float

val : float

Availability and Requirements

Defined for the following targets:

cuda

Available in all stages.