|
||||||||||
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)
Adds arbitrary data to the function's argument list. |
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)
[C++ API] Binds a memory area to a texture template < class T, int dim, enum cudaTextureReadMode readMode > cudaError_t cudaBindTexture ( size_t* offset, const texture < T, dim, readMode > & tex, const void* devPtr, const cudaChannelFormatDesc& desc, size_t size = UINT_MAX ) [inline]
[C++ API] Binds a memory area to a
texture Binds size bytes of the memory area pointed to by
devPtr to texture reference tex. |
static int |
JCuda.cudaBindTexture2D(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long width,
long height,
long pitch)
[C++ API] Binds a 2D memory area to a texture template < class T, int dim, enum cudaTextureReadMode readMode > cudaError_t cudaBindTexture2D ( size_t* offset, const texture < T, dim, readMode > & tex, const void* devPtr, const cudaChannelFormatDesc& desc, size_t width, size_t height, size_t pitch ) [inline]
[C++ API] Binds a 2D memory area to a
texture Binds the 2D memory area pointed to by devPtr to
the texture reference tex. |
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)
[C++ API] Finds the address associated with a CUDA symbol template < class T > cudaError_t cudaGetSymbolAddress ( void** devPtr, const T& symbol ) [inline]
[C++ API] Finds the address associated
with a CUDA symbol Returns in *devPtr the address of symbol
symbol on the device. |
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 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)
cudaError_t cudaIpcGetMemHandle ( cudaIpcMemHandle_t* handle, void* devPtr )
/brief Gets an interprocess memory
handle for an existing device memory allocation
Takes a pointer to the base of an
existing device memory allocation created with cudaMalloc and exports
it for use in another process. |
static int |
JCuda.cudaIpcOpenMemHandle(Pointer devPtr,
cudaIpcMemHandle handle,
int flags)
cudaError_t cudaIpcOpenMemHandle ( void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags )
/brief 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)
[C++ API] Allocates page-locked memory on the host cudaError_t cudaMallocHost ( void** ptr, size_t size, unsigned int flags )
[C++ API] Allocates page-locked memory
on the host Allocates size bytes of host memory that is
page-locked and accessible to the device. |
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)
[C++ API] Copies data from the given symbol on the device template < class T > cudaError_t cudaMemcpyFromSymbol ( void* dst, const T& symbol, size_t count, size_t offset = 0, cudaMemcpyKind kind = cudaMemcpyDeviceToHost ) [inline]
[C++ API] Copies data from the given
symbol on the device Copies count bytes from the memory area
offset bytes from the start of symbol symbol to
the memory area pointed to by dst. |
static int |
JCuda.cudaMemcpyFromSymbolAsync(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
[C++ API] Copies data from the given symbol on the device template < class T > cudaError_t cudaMemcpyFromSymbolAsync ( void* dst, const T& symbol, size_t count, size_t offset = 0, cudaMemcpyKind kind = cudaMemcpyDeviceToHost, cudaStream_t stream = 0 ) [inline]
[C++ API] Copies data from the given
symbol on the device Copies count bytes from the memory area
offset bytes from the start of symbol symbol to
the memory area pointed to by dst. |
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)
[C++ API] Copies data to the given symbol on the device template < class T > cudaError_t cudaMemcpyToSymbol ( const T& symbol, const void* src, size_t count, size_t offset = 0, cudaMemcpyKind kind = cudaMemcpyHostToDevice ) [inline]
[C++ API] Copies data to the given symbol
on the device Copies count bytes from the memory area
pointed to by src to the memory area offset bytes
from the start of symbol symbol. |
static int |
JCuda.cudaMemcpyToSymbolAsync(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
[C++ API] Copies data to the given symbol on the device template < class T > cudaError_t cudaMemcpyToSymbolAsync ( const T& symbol, const void* src, size_t count, size_t offset = 0, cudaMemcpyKind kind = cudaMemcpyHostToDevice, cudaStream_t stream = 0 ) [inline]
[C++ API] Copies data to the given symbol
on the device Copies count bytes from the memory area
pointed to by src to the memory area offset bytes
from the start of symbol symbol. |
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)
[C++ API] Configure a device launch template < class T > cudaError_t cudaSetupArgument ( T arg, size_t offset ) [inline]
[C++ API] Configure a device launch
Pushes size bytes of the argument pointed to by arg
at offset bytes from the start of the parameter passing area,
which starts at offset 0. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |