Struct CUdeviceptr
Pointer to CUDA device memory
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: ManagedCuda.dll
Syntax
public struct CUdeviceptr
Constructors
|
Improve this Doc
View Source
CUdeviceptr(SizeT)
Declaration
public CUdeviceptr(SizeT pointer)
Parameters
Type |
Name |
Description |
SizeT |
pointer |
|
Fields
|
Improve this Doc
View Source
Pointer
Declaration
Field Value
Properties
|
Improve this Doc
View Source
AttributeBufferID
A process-wide unique ID for an allocated memory region
Declaration
public ulong AttributeBufferID { get; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
AttributeContext
The CUcontext on which a pointer was allocated or registered
Declaration
public CUcontext AttributeContext { get; }
Property Value
|
Improve this Doc
View Source
AttributeDevicePointer
The address at which a pointer's memory may be accessed on the device
Except in the exceptional disjoint addressing cases, the value returned will equal the input value.
Declaration
public CUdeviceptr AttributeDevicePointer { get; }
Property Value
|
Improve this Doc
View Source
AttributeHostPointer
The address at which a pointer's memory may be accessed on the host
Declaration
public IntPtr AttributeHostPointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
|
Improve this Doc
View Source
AttributeIsManaged
Indicates if the pointer points to managed memory
Declaration
public bool AttributeIsManaged { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AttributeMemoryType
The CUMemoryType describing the physical location of a pointer
Declaration
public CUMemoryType AttributeMemoryType { get; }
Property Value
|
Improve this Doc
View Source
AttributeP2PTokens
A pair of tokens for use with the nv-p2p.h Linux kernel interface
Declaration
public CudaPointerAttributeP2PTokens AttributeP2PTokens { get; }
Property Value
|
Improve this Doc
View Source
AttributeSyncMemops
Synchronize every synchronous memory operation initiated on this region
Declaration
public bool AttributeSyncMemops { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Equals(Object)
Returns true if both objects are of type CUdeviceptr and if both Pointer member is equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Overrides object.GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(CUdeviceptr, SizeT)
Declaration
public static CUdeviceptr operator +(CUdeviceptr src, SizeT value)
Parameters
Returns
|
Improve this Doc
View Source
Equality(CUdeviceptr, CUdeviceptr)
Declaration
public static bool operator ==(CUdeviceptr src, CUdeviceptr value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Explicit(SizeT to CUdeviceptr)
Declaration
public static explicit operator CUdeviceptr(SizeT src)
Parameters
Type |
Name |
Description |
SizeT |
src |
|
Returns
|
Improve this Doc
View Source
Implicit(CUdeviceptr to UInt64)
Declaration
public static implicit operator ulong (CUdeviceptr src)
Parameters
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
Inequality(CUdeviceptr, CUdeviceptr)
Declaration
public static bool operator !=(CUdeviceptr src, CUdeviceptr value)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Subtraction(CUdeviceptr, SizeT)
Declaration
public static CUdeviceptr operator -(CUdeviceptr src, SizeT value)
Parameters
Returns