Class FloatZeroCopyResidentArray
A resident array of float 32 elements, allocated using zero-copy Zero-copy documentation here
Inheritance
System.Object
FloatZeroCopyResidentArray
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 FloatZeroCopyResidentArray : IResidentData, IResidentArray, IDisposable
Constructors
FloatZeroCopyResidentArray(Int64, Object)
Declaration
public FloatZeroCopyResidentArray(long count, object source = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | count | |
| System.Object | source |
Fields
tab
Declaration
protected float *tab
Field Value
| Type | Description |
|---|---|
| System.Single* |
Properties
Count
Number of elements
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 float this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type | Description |
|---|---|
| System.Single |
Size
Size in Bytes
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()
RefreshDevice()
Moves memory from Host To Device
Declaration
public void RefreshDevice()
RefreshHost()
Moves memory from Device To Host
Declaration
public void RefreshHost()
Implements
System.IDisposable