Show / Hide Table of Contents

Class ResidentArrayGeneric<T>

Inheritance
System.Object
ResidentArrayGeneric<T>
Implements
IResidentData
IResidentArray
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
public class ResidentArrayGeneric<T> : IResidentData, IResidentArray, IDisposable where T : struct
Type Parameters
Name Description
T

Constructors

ResidentArrayGeneric(Int64)

Declaration
public ResidentArrayGeneric(long count)
Parameters
Type Name Description
System.Int64 count

Fields

tab

Declaration
protected IntPtr tab
Field Value
Type Description
System.IntPtr

Properties

Count

Count

Declaration
public long Count { get; }
Property Value
Type Description
System.Int64

DevicePointer

device pointer

Declaration
public IntPtr DevicePointer { get; set; }
Property Value
Type Description
System.IntPtr

HostPointer

host pointer

Declaration
public IntPtr HostPointer { get; }
Property Value
Type Description
System.IntPtr

Item[Int32]

Declaration
public T this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
T

Size

Size

Declaration
public long Size { get; }
Property Value
Type Description
System.Int64

Status

memory status

Declaration
public ResidentArrayStatus Status { get; set; }
Property Value
Type Description
ResidentArrayStatus

Methods

Dispose()

Declaration
public void Dispose()

Finalize()

Declaration
protected void Finalize()

Import(T[])

assuming memory is already allocated by a call to constructor

Declaration
[HybridizerIgnore]
public void Import(T[] data)
Parameters
Type Name Description
T[] data

RefreshDevice()

moves memory from host to device

Declaration
public void RefreshDevice()

RefreshHost()

moves memory from device to host

Declaration
public void RefreshHost()

Implements

IResidentData
IResidentArray
System.IDisposable
Back to top Generated by DocFX