jcuda.driver
Class CUDA_MEMCPY2D

java.lang.Object
  extended by jcuda.driver.CUDA_MEMCPY2D

public class CUDA_MEMCPY2D
extends java.lang.Object

Java port of a CUDA_MEMCPY2D setup.

Most comments are taken from the CUDA reference manual

See Also:
JCudaDriver.cuMemcpy2D(CUDA_MEMCPY2D)

Field Summary
 CUarray dstArray
          The destination array.
 CUdeviceptr dstDevice
          The destination pointer.
 Pointer dstHost
          The destination pointer.
 int dstMemoryType
          The destination memory type.
 long dstPitch
          The destination pitch - ignored when dst is array.
 long dstXInBytes
          dstXInBytes and dstY specify the base address of the destination data for the copy.
 long dstY
          dstXInBytes and dstY specify the base address of the destination data for the copy.
 long Height
          WidthInBytes and Height specify the width (in bytes) and height of the 2D copy being performed.
 CUarray srcArray
          The source array.
 CUdeviceptr srcDevice
          The source pointer.
 Pointer srcHost
          The source pointer.
 int srcMemoryType
          The source memory type.
 long srcPitch
          The source pitch - ignored when src is array.
 long srcXInBytes
          srcXInBytes and srcY specify the base address of the source data for the copy.
 long srcY
          srcXInBytes and srcY specify the base address of the source data for the copy.
 long WidthInBytes
          WidthInBytes and Height specify the width (in bytes) and height of the 2D copy being performed.
 
Constructor Summary
CUDA_MEMCPY2D()
          Creates a new, uninitialized CUDA_MEMCPY2D
 
Method Summary
 java.lang.String toFormattedString()
          Creates and returns a formatted (aligned, multi-line) String representation of this object
 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

srcXInBytes

public long srcXInBytes
srcXInBytes and srcY specify the base address of the source data for the copy.


srcY

public long srcY
srcXInBytes and srcY specify the base address of the source data for the copy.


srcMemoryType

public int srcMemoryType
The source memory type.

See Also:
CUmemorytype

srcHost

public Pointer srcHost
The source pointer.


srcDevice

public CUdeviceptr srcDevice
The source pointer.


srcArray

public CUarray srcArray
The source array.


srcPitch

public long srcPitch
The source pitch - ignored when src is array.


dstXInBytes

public long dstXInBytes
dstXInBytes and dstY specify the base address of the destination data for the copy.


dstY

public long dstY
dstXInBytes and dstY specify the base address of the destination data for the copy.


dstMemoryType

public int dstMemoryType
The destination memory type.

See Also:
CUmemorytype

dstHost

public Pointer dstHost
The destination pointer.


dstDevice

public CUdeviceptr dstDevice
The destination pointer.


dstArray

public CUarray dstArray
The destination array.


dstPitch

public long dstPitch
The destination pitch - ignored when dst is array.


WidthInBytes

public long WidthInBytes
WidthInBytes and Height specify the width (in bytes) and height of the 2D copy being performed. Any pitches must be greater than or equal to WidthInBytes.


Height

public long Height
WidthInBytes and Height specify the width (in bytes) and height of the 2D copy being performed. Any pitches must be greater than or equal to WidthInBytes.

Constructor Detail

CUDA_MEMCPY2D

public CUDA_MEMCPY2D()
Creates a new, uninitialized CUDA_MEMCPY2D

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.

toFormattedString

public java.lang.String toFormattedString()
Creates and returns a formatted (aligned, multi-line) String representation of this object

Returns:
A formatted String representation of this object