Uses of Class
jcuda.Pointer

Packages that use Pointer
jcuda Contains common classes for all JCuda libraries. 
jcuda.driver Contains the classes related to the JCuda driver API. 
jcuda.runtime Contains the classes related to the JCuda runtime API. 
 

Uses of Pointer in jcuda
 

Methods in jcuda that return Pointer
static Pointer Pointer.to(java.nio.Buffer buffer)
          Creates a new Pointer to the given Buffer.
static Pointer Pointer.to(byte[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(char[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(double[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(float[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(int[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(long[] values)
          Creates a new Pointer to the given values.
static Pointer Pointer.to(Pointer... pointers)
          Creates a new Pointer to the given Pointers.
static Pointer Pointer.to(short[] values)
          Creates a new Pointer to the given values.
 Pointer Pointer.withByteOffset(long byteOffset)
          Returns a new pointer with an offset of the given number of bytes
 

Methods in jcuda with parameters of type Pointer
static Pointer Pointer.to(Pointer... pointers)
          Creates a new Pointer to the given Pointers.
 

Uses of Pointer in jcuda.driver
 

Subclasses of Pointer in jcuda.driver
 class CUdeviceptr
          Java port of a CUdeviceptr.
 

Fields in jcuda.driver declared as Pointer
 Pointer CUDA_MEMCPY3D.dstHost
          The destination pointer.
 Pointer CUDA_MEMCPY2D.dstHost
          The destination pointer.
 Pointer CUDA_MEMCPY3D.srcHost
          The source pointer.
 Pointer CUDA_MEMCPY2D.srcHost
          The source pointer.
 

Methods in jcuda.driver with parameters of type Pointer
static int JCudaDriver.cuMemAllocHost(Pointer pp, int bytesize)
          Allocates page-locked host memory.
static int JCudaDriver.cuMemcpyAtoH(Pointer dstHost, CUarray srcArray, int srcIndex, int ByteCount)
          Copies memory from Array to Host.
static int JCudaDriver.cuMemcpyAtoHAsync(Pointer dstHost, CUarray srcArray, int srcIndex, int ByteCount, CUstream hStream)
          Copies memory.
static int JCudaDriver.cuMemcpyDtoH(Pointer dstHost, CUdeviceptr srcDevice, int ByteCount)
          Copies memory from Device to Host.
static int JCudaDriver.cuMemcpyDtoHAsync(Pointer dstHost, CUdeviceptr srcDevice, int ByteCount, CUstream hStream)
          Copies memory.
static int JCudaDriver.cuMemcpyHtoA(CUarray dstArray, int dstIndex, Pointer pSrc, int ByteCount)
          Copies memory from Host to Array.
static int JCudaDriver.cuMemcpyHtoAAsync(CUarray dstArray, int dstIndex, Pointer pSrc, int ByteCount, CUstream hStream)
          Copies memory.
static int JCudaDriver.cuMemcpyHtoD(CUdeviceptr dstDevice, Pointer srcHost, int ByteCount)
          Copy memory from Host to Device.
static int JCudaDriver.cuMemcpyHtoDAsync(CUdeviceptr dstDevice, Pointer srcHost, int ByteCount, CUstream hStream)
          Copies memory.
static int JCudaDriver.cuMemFreeHost(Pointer p)
          Frees page-locked host memory.
static int JCudaDriver.cuMemHostAlloc(Pointer pp, long bytes, int Flags)
          Allocates bytes bytes of host memory that is page-locked and accessible to the device.
static int JCudaDriver.cuMemHostGetDevicePointer(CUdeviceptr ret, Pointer p, int Flags)
          Passes back the device pointer ret corresponding to the mapped, pinned host buffer p allocated by cuMemHostAlloc.
static int JCudaDriver.cuMemHostGetFlags(int[] pFlags, Pointer p)
          Passes back the flags pFlags that were specified when allocating the pinned host buffer p allocated by cuMemHostAlloc.
static int JCudaDriver.cuModuleLoadDataEx(CUmodule phMod, Pointer p, int numOptions, int[] options, Pointer optionValues)
          Takes a pointer p and loads the corresponding module phMod into the current context.
static int JCudaDriver.cuParamSetv(CUfunction hfunc, int offset, Pointer ptr, int numbytes)
          Adds arbitrary data to the function’s argument list.
 

Uses of Pointer in jcuda.runtime
 

Fields in jcuda.runtime declared as Pointer
 Pointer cudaPitchedPtr.ptr
          Pointer to allocated memory.
 

Methods in jcuda.runtime with parameters of type Pointer
static int JCuda.cudaBindTexture(long[] offset, textureReference texref, Pointer devPtr, cudaChannelFormatDesc desc, long size)
          Binds size bytes of the memory area pointed to by devPtr to texture reference texRef.
static int JCuda.cudaBindTexture2D(long[] offset, textureReference texref, Pointer devPtr, cudaChannelFormatDesc desc, long width, long height, long pitch)
          Binds the 2D memory area pointed to by devPtr to the texture reference texref.
static int JCuda.cudaFree(Pointer devPtr)
          Frees memory on the GPU.
static int JCuda.cudaFreeHost(Pointer ptr)
          Frees page-locked memory.
static int JCuda.cudaGetSymbolAddress(Pointer devPtr, java.lang.String symbol)
          Finds the address associated with a CUDA symbol.
static int JCuda.cudaGLMapBufferObject(Pointer devPtr, int bufObj)
          Deprecated. As of CUDA 3.0
static int JCuda.cudaGLMapBufferObjectAsync(Pointer devPtr, int bufObj, cudaStream_t stream)
          Deprecated. As of CUDA 3.0
static int JCuda.cudaGraphicsResourceGetMappedPointer(Pointer devPtr, long[] size, cudaGraphicsResource resource)
          Returns in *devPtr a pointer through which the mapped graphics resource resource may be accessed.
static int JCuda.cudaHostAlloc(Pointer ptr, long size, int flags)
          Allocates count bytes of host memory that is page-locked and accessible to the device.
static int JCuda.cudaHostGetDevicePointer(Pointer pDevice, Pointer pHost, int flags)
          Passes back the device pointer corresponding to the mapped, pinned host buffer allocated by cudaHostAlloc().
static int JCuda.cudaMalloc(Pointer devPtr, long size)
          Allocate memory on the GPU.
static int JCuda.cudaMallocHost(Pointer ptr, long size)
          Allocates page-locked memory on the host.
static int JCuda.cudaMallocPitch(Pointer devPtr, long[] pitch, long width, long height)
          Allocates memory on the GPU.
static int JCuda.cudaMemcpy(Pointer dst, Pointer src, long count, int cudaMemcpyKind_kind)
          Copies data between GPU and host.
static int JCuda.cudaMemcpy2D(Pointer dst, long dpitch, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind)
          Copies data between host and device.
static int JCuda.cudaMemcpy2DAsync(Pointer dst, long dpitch, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpy2DFromArray(Pointer dst, long dpitch, cudaArray src, long wOffset, long hOffset, long width, long height, int cudaMemcpyKind_kind)
          Copies data between host and device.
static int JCuda.cudaMemcpy2DFromArrayAsync(Pointer dst, long dpitch, cudaArray src, long wOffset, long hOffset, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpy2DToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind)
          Copies data between host and device.
static int JCuda.cudaMemcpy2DToArrayAsync(cudaArray dst, long wOffset, long hOffset, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpyAsync(Pointer dst, Pointer src, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpyFromArray(Pointer dst, cudaArray src, long wOffset, long hOffset, long count, int cudaMemcpyKind_kind)
          Copies data between host and device.
static int JCuda.cudaMemcpyFromArrayAsync(Pointer dst, cudaArray src, long wOffset, long hOffset, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpyFromSymbol(Pointer dst, java.lang.String symbol, long count, long offset, int cudaMemcpyKind_kind)
          Copies data from GPU to host memory.
static int JCuda.cudaMemcpyFromSymbolAsync(Pointer dst, java.lang.String symbol, long count, long offset, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpyToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind)
          Copies data between host and device.
static int JCuda.cudaMemcpyToArrayAsync(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemcpyToSymbol(java.lang.String symbol, Pointer src, long count, long offset, int cudaMemcpyKind_kind)
          Copies data from host memory to GPU.
static int JCuda.cudaMemcpyToSymbolAsync(java.lang.String symbol, Pointer src, long count, long offset, int cudaMemcpyKind_kind, cudaStream_t stream)
           
static int JCuda.cudaMemset(Pointer mem, int c, long count)
          Initializes or sets GPU memory to a value.
static int JCuda.cudaMemset2D(Pointer mem, long pitch, int c, long width, long height)
          Initializes or sets GPU memory to a value.
static int JCuda.cudaSetupArgument(Pointer arg, long size, long offset)
          Configure a device-launch.