|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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 pointer,
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 from Array to Host. |
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 from Device to Host. |
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 from Host to Array. |
static int |
JCudaDriver.cuMemcpyHtoD(CUdeviceptr dstDevice,
Pointer srcHost,
int ByteCount)
Copies memory from Host to Device. |
static int |
JCudaDriver.cuMemcpyHtoDAsync(CUdeviceptr dstDevice,
Pointer srcHost,
int ByteCount,
CUstream hStream)
Copies memory from Host to Device. |
static int |
JCudaDriver.cuMemFreeHost(Pointer p)
Frees page-locked host memory. |
static int |
JCudaDriver.cuMemHostAlloc(Pointer pp,
long bytes,
int Flags)
Allocates page-locked host memory. |
static int |
JCudaDriver.cuMemHostGetDevicePointer(CUdeviceptr ret,
Pointer p,
int Flags)
Passes back device pointer of mapped pinned memory. |
static int |
JCudaDriver.cuMemHostGetFlags(int[] pFlags,
Pointer p)
Passes back flags that were used for a pinned allocation. |
static int |
JCudaDriver.cuModuleLoadDataEx(CUmodule phMod,
Pointer p,
int numOptions,
int[] options,
Pointer optionValues)
Load a module's data with options. |
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 a memory area to a texture. |
static int |
JCuda.cudaBindTexture2D(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long width,
long height,
long pitch)
Binds a 2D memory area to a texture. |
static int |
JCuda.cudaFree(Pointer devPtr)
Frees memory on the device. |
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)
Maps a buffer object for access by CUDA. |
static int |
JCuda.cudaGLMapBufferObjectAsync(Pointer devPtr,
int bufObj,
cudaStream_t stream)
Maps a buffer object for access by CUDA. |
static int |
JCuda.cudaGraphicsResourceGetMappedPointer(Pointer devPtr,
long[] size,
cudaGraphicsResource resource)
Get an device pointer through which to access a mapped graphics resource. |
static int |
JCuda.cudaHostAlloc(Pointer ptr,
long size,
int flags)
Allocates page-locked memory on the host. |
static int |
JCuda.cudaHostGetDevicePointer(Pointer pDevice,
Pointer pHost,
int flags)
Passes back device pointer of mapped host memory allocated by cudaHostAlloc(). |
static int |
JCuda.cudaMalloc(Pointer devPtr,
long size)
Allocate memory on the device. |
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 pitched memory on the device. |
static int |
JCuda.cudaMemcpy(Pointer dst,
Pointer src,
long count,
int cudaMemcpyKind_kind)
Copies data between host and device. |
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)
Copies data between host and device. |
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)
Copies data between host and device. |
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)
Copies data between host and device. |
static int |
JCuda.cudaMemcpyAsync(Pointer dst,
Pointer src,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Copies data between host and device. |
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)
Copies data between host and device. |
static int |
JCuda.cudaMemcpyFromSymbol(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind)
Copies data from the given symbol on the device. |
static int |
JCuda.cudaMemcpyFromSymbolAsync(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Copies data from the given symbol on the device. |
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)
Copies data between host and device. |
static int |
JCuda.cudaMemcpyToSymbol(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind)
Copies data to the given symbol on the device. |
static int |
JCuda.cudaMemcpyToSymbolAsync(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Copies data to the given symbol on the device. |
static int |
JCuda.cudaMemset(Pointer mem,
int c,
long count)
Initializes or sets device memory to a value. |
static int |
JCuda.cudaMemset2D(Pointer mem,
long pitch,
int c,
long width,
long height)
Initializes or sets device memory to a value. |
static int |
JCuda.cudaSetupArgument(Pointer arg,
long size,
long offset)
Configure a device launch. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |