|
||||||||||
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)
NOTE: This method does not take into account the position and array offset of 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(NativePointerObject... pointers)
Creates a new Pointer to the given Pointers. |
static Pointer |
Pointer.to(short[] values)
Creates a new Pointer to the given values. |
static Pointer |
Pointer.toBuffer(java.nio.Buffer buffer)
Creates a new Pointer to the given buffer. |
Pointer |
Pointer.withByteOffset(long byteOffset)
Returns a new pointer with an offset of the given number of bytes |
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 | |
---|---|
static Pointer |
JCudaDriver.CU_LAUNCH_PARAM_BUFFER_POINTER
Indicator that the next value in the \p extra parameter to ::cuLaunchKernel will be a pointer to a buffer containing all kernel parameters used for launching kernel \p f. |
static Pointer |
JCudaDriver.CU_LAUNCH_PARAM_BUFFER_SIZE
Indicator that the next value in the \p extra parameter to ::cuLaunchKernel will be a pointer to a size_t which contains the size of the buffer specified with ::CU_LAUNCH_PARAM_BUFFER_POINTER. |
static Pointer |
JCudaDriver.CU_LAUNCH_PARAM_END
End of array terminator for the \p extra parameter to ::cuLaunchKernel |
Pointer |
CUDA_MEMCPY3D_PEER.dstHost
The destination pointer. |
Pointer |
CUDA_MEMCPY3D.dstHost
The destination pointer. |
Pointer |
CUDA_MEMCPY2D.dstHost
The destination pointer. |
Pointer |
CUDA_MEMCPY3D_PEER.srcHost
The source 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.cuLaunchKernel(CUfunction f,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
CUstream hStream,
Pointer kernelParams,
Pointer extra)
Launches a CUDA function. |
static int |
JCudaDriver.cuMemAllocHost(Pointer pointer,
long bytesize)
Allocates page-locked host memory. |
static int |
JCudaDriver.cuMemcpyAtoH(Pointer dstHost,
CUarray srcArray,
long srcIndex,
long ByteCount)
Copies memory from Array to Host. |
static int |
JCudaDriver.cuMemcpyAtoHAsync(Pointer dstHost,
CUarray srcArray,
long srcIndex,
long ByteCount,
CUstream hStream)
Copies memory from Array to Host. |
static int |
JCudaDriver.cuMemcpyDtoH(Pointer dstHost,
CUdeviceptr srcDevice,
long ByteCount)
Copies memory from Device to Host. |
static int |
JCudaDriver.cuMemcpyDtoHAsync(Pointer dstHost,
CUdeviceptr srcDevice,
long ByteCount,
CUstream hStream)
Copies memory from Device to Host. |
static int |
JCudaDriver.cuMemcpyHtoA(CUarray dstArray,
long dstIndex,
Pointer pSrc,
long ByteCount)
Copies memory from Host to Array. |
static int |
JCudaDriver.cuMemcpyHtoAAsync(CUarray dstArray,
long dstIndex,
Pointer pSrc,
long ByteCount,
CUstream hStream)
Copies memory from Host to Array. |
static int |
JCudaDriver.cuMemcpyHtoD(CUdeviceptr dstDevice,
Pointer srcHost,
long ByteCount)
Copies memory from Host to Device. |
static int |
JCudaDriver.cuMemcpyHtoDAsync(CUdeviceptr dstDevice,
Pointer srcHost,
long 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.cuMemHostRegister(Pointer p,
long bytesize,
int Flags)
Registers an existing host memory range for use by CUDA. |
static int |
JCudaDriver.cuMemHostUnregister(Pointer p)
Unregisters a memory range that was registered with cuMemHostRegister(). |
static int |
JCudaDriver.cuModuleLoadDataEx(CUmodule phMod,
Pointer p,
int numOptions,
int[] options,
Pointer optionValues)
Load a module's data with options. |
static int |
JCudaDriver.cuModuleLoadDataJIT(CUmodule module,
Pointer pointer,
JITOptions jitOptions)
A wrapper function for JCudaDriver.cuModuleLoadDataEx(CUmodule, Pointer, int, int[], Pointer)
which allows passing in the options for the JIT compiler, and obtaining
the output of the JIT compiler via a JITOptions object. |
static int |
JCudaDriver.cuParamSetv(CUfunction hfunc,
int offset,
Pointer ptr,
int numbytes)
Deprecated. This function is deprecated in the latest CUDA version |
static int |
JCudaDriver.cuPointerGetAttribute(Pointer data,
int attribute,
CUdeviceptr ptr)
Returns information about a pointer. |
Uses of Pointer in jcuda.runtime |
---|
Fields in jcuda.runtime declared as Pointer | |
---|---|
Pointer |
cudaPointerAttributes.devicePointer
The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. |
Pointer |
cudaPointerAttributes.hostPointer
The address which may be dereferenced on the host to access the memory or NULL if no such address exists. |
Pointer |
cudaResourceDesc.linear_devPtr
Device pointer for cudaResourceType.cudaResourceTypeLinear |
Pointer |
cudaResourceDesc.pitch2D_devPtr
Device pointer for cudaResourceType.cudaResourceTypePitch2D |
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)
Deprecated. This function is no longer supported as of CUDA 5.0 |
static int |
JCuda.cudaGLMapBufferObject(Pointer devPtr,
int bufObj)
Deprecated. This function is deprecated in the latest CUDA version |
static int |
JCuda.cudaGLMapBufferObjectAsync(Pointer devPtr,
int bufObj,
cudaStream_t stream)
Deprecated. This function is deprecated in the latest CUDA version |
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() or registered by cudaHostRegister(). |
static int |
JCuda.cudaHostRegister(Pointer ptr,
long size,
int flags)
Registers an existing host memory range for use by CUDA. |
static int |
JCuda.cudaHostUnregister(Pointer ptr)
Unregisters a memory range that was registered with cudaHostRegister(). |
static int |
JCuda.cudaIpcCloseMemHandle(Pointer devPtr)
Close memory mapped with ::cudaIpcOpenMemHandle. |
static int |
JCuda.cudaIpcGetMemHandle(cudaIpcMemHandle handle,
Pointer devPtr)
Gets an interprocess memory handle for an existing device memory allocation. |
static int |
JCuda.cudaIpcOpenMemHandle(Pointer devPtr,
cudaIpcMemHandle handle,
int flags)
Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process. |
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)
Deprecated. This function is no longer supported as of CUDA 5.0 |
static int |
JCuda.cudaMemcpyFromSymbolAsync(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Deprecated. This function is no longer supported as of CUDA 5.0 |
static int |
JCuda.cudaMemcpyPeer(Pointer dst,
int dstDevice,
Pointer src,
int srcDevice,
long count)
Copies memory between two devices. |
static int |
JCuda.cudaMemcpyPeerAsync(Pointer dst,
int dstDevice,
Pointer src,
int srcDevice,
long count,
cudaStream_t stream)
Copies memory between two devices asynchronously. |
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)
Deprecated. This function is no longer supported as of CUDA 5.0 |
static int |
JCuda.cudaMemcpyToSymbolAsync(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Deprecated. This function is no longer supported as of CUDA 5.0 |
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.cudaMemset2DAsync(Pointer devPtr,
long pitch,
int value,
long width,
long height,
cudaStream_t stream)
Initializes or sets device memory to a value. |
static int |
JCuda.cudaMemsetAsync(Pointer devPtr,
int value,
long count,
cudaStream_t stream)
Initializes or sets device memory to a value. |
static int |
JCuda.cudaPointerGetAttributes(cudaPointerAttributes attributes,
Pointer ptr)
Returns attributes about a specified pointer. |
static int |
JCuda.cudaSetupArgument(Pointer arg,
long size,
long offset)
Configure a device launch. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |