jcuda.runtime
Class cudaPointerAttributes

java.lang.Object
  extended by jcuda.runtime.cudaPointerAttributes

public class cudaPointerAttributes
extends java.lang.Object

CUDA pointer attributes


Field Summary
 int device
          The device against which the memory was allocated or registered.
 Pointer devicePointer
          The address which may be dereferenced on the current device to access the memory or NULL if no such address exists.
 Pointer hostPointer
          The address which may be dereferenced on the host to access the memory or NULL if no such address exists.
 int memoryType
          The physical location of the memory, ::cudaMemoryTypeHost or ::cudaMemoryTypeDevice.
 
Constructor Summary
cudaPointerAttributes()
          Creates a new, uninitialized cudaPointerAttributes
 
Method Summary
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

memoryType

public int memoryType
The physical location of the memory, ::cudaMemoryTypeHost or ::cudaMemoryTypeDevice.


device

public int device
The device against which the memory was allocated or registered. If the memory type is ::cudaMemoryTypeDevice then this identifies the device on which the memory referred physically resides. If the memory type is ::cudaMemoryTypeHost then this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state).


devicePointer

public Pointer devicePointer
The address which may be dereferenced on the current device to access the memory or NULL if no such address exists.


hostPointer

public Pointer hostPointer
The address which may be dereferenced on the host to access the memory or NULL if no such address exists.

Constructor Detail

cudaPointerAttributes

public cudaPointerAttributes()
Creates a new, uninitialized cudaPointerAttributes

Method Detail

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of this object.