Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static Pointer |
Pointer.to(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(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
|
Constructor and Description |
---|
Pointer(Pointer other)
Copy constructor
|
Pointer(Pointer other,
long byteOffset)
Creates a copy of the given pointer, with an
additional byte offset
|
Modifier and Type | Class and Description |
---|---|
class |
CUdeviceptr
Java port of a CUdeviceptr.
|
Modifier and Type | Field and Description |
---|---|
Pointer |
CUaccessPolicyWindow.base_ptr
Starting address of the access policy window.
|
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_KERNEL_NODE_PARAMS.extra
Extra options
|
Pointer |
CUDA_LAUNCH_PARAMS.kernelParams
Array of pointers to kernel parameters
|
Pointer |
CUDA_KERNEL_NODE_PARAMS.kernelParams
Array of pointers to kernel parameters
|
Pointer |
CUDA_MEMCPY3D_PEER.srcHost
The source pointer.
|
Pointer |
CUDA_MEMCPY3D.srcHost
The source pointer.
|
Pointer |
CUDA_MEMCPY2D.srcHost
The source pointer.
|
Pointer |
CUmemAllocationProp.win32HandleMetaData
Windows-specific LPSECURITYATTRIBUTES required when
::CU_MEM_HANDLE_TYPE_WIN32 is specified.
|
Modifier and Type | Method and Description |
---|---|
static int |
JCudaDriver.cuLaunchCooperativeKernel(CUfunction f,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
CUstream hStream,
Pointer kernelParams)
Launches a CUDA function where thread blocks can cooperate and synchronize as they execute.
|
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.cuLinkAddData(CUlinkState state,
int type,
Pointer data,
long size,
String name,
JITOptions jitOptions) |
static int |
JCudaDriver.cuLinkComplete(CUlinkState state,
Pointer cubinOut,
long[] sizeOut) |
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.cuMemExportToShareableHandle(Pointer shareableHandle,
CUmemGenericAllocationHandle handle,
int handleType,
long flags)
Exports an allocation to a requested shareable handle type.
|
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.cuMemImportFromShareableHandle(CUmemGenericAllocationHandle handle,
Pointer osHandle,
int shHandleType)
Imports an allocation from a requested shareable handle type.
|
static int |
JCudaDriver.cuMemRangeGetAttribute(Pointer data,
long dataSize,
int attribute,
CUdeviceptr devPtr,
long count)
Query an attribute of a given memory range.
|
static int |
JCudaDriver.cuMemRangeGetAttributes(Pointer[] data,
long[] dataSizes,
int[] attributes,
long numAttributes,
CUdeviceptr devPtr,
long count)
Query attributes of a given memory range.
|
static int |
JCudaDriver.cuMemRetainAllocationHandle(CUmemGenericAllocationHandle handle,
Pointer addr)
Given an address addr, returns the allocation handle of the backing memory 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.cuModuleLoadDataEx(CUmodule phMod,
String string,
int numOptions,
int[] options,
Pointer optionValues)
A wrapper function for
JCudaDriver.cuModuleLoadDataEx(CUmodule, Pointer, int, int[], Pointer)
which allows passing in the image data as a string. |
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.
Deprecated in CUDA
|
static int |
JCudaDriver.cuPointerGetAttribute(Pointer data,
int attribute,
CUdeviceptr ptr)
Returns information about a pointer.
|
static int |
JCudaDriver.cuPointerGetAttributes(int numAttributes,
int[] attributes,
Pointer data,
CUdeviceptr ptr)
Returns information about a pointer.
|
static int |
JCudaDriver.cuPointerSetAttribute(Pointer value,
int attribute,
CUdeviceptr ptr)
Set attributes on a previously allocated memory region
The supported attributes are: CU_POINTER_ATTRIBUTE_SYNC_MEMOPS: A boolean attribute that can either be set (1) or unset (0). |
Constructor and Description |
---|
CUaccessPolicyWindow(Pointer base_ptr,
long num_bytes,
float hitRatio,
int hitProp,
int missProp)
Creates a new CUaccessPolicyWindow with the given values
|
CUmemAllocationProp(int type,
int requestedHandleTypes,
CUmemLocation location,
Pointer win32HandleMetaData,
CUmemAllocationProp_allocFlags allocFlags)
Creates a new CUmemAllocationProp with the given values
|
Modifier and Type | Field and Description |
---|---|
Pointer |
cudaAccessPolicyWindow.base_ptr
Starting address of the access policy window.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static int |
JCuda.cudaBindTexture(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long size)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCuda.cudaBindTexture2D(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long width,
long height,
long pitch)
Deprecated.
Deprecated as of CUDA 10.1
|
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,
String symbol)
Deprecated.
This function is no longer supported as of CUDA 5.0
|
static int |
JCuda.cudaGLMapBufferObject(Pointer devPtr,
int bufObj)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCuda.cudaGLMapBufferObjectAsync(Pointer devPtr,
int bufObj,
cudaStream_t stream)
Deprecated.
Deprecated as of CUDA 3.0
|
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.cudaMallocManaged(Pointer devPtr,
long size,
int flags)
__host__ cudaError_t cudaMallocManaged (
void** devPtr,
size_t size,
unsigned int flags = cudaMemAttachGlobal )
Allocates memory that will be automatically managed by the Unified
Memory system.
|
static int |
JCuda.cudaMallocPitch(Pointer devPtr,
long[] pitch,
long width,
long height)
Allocates pitched memory on the device.
|
static int |
JCuda.cudaMemAdvise(Pointer devPtr,
long count,
int advice,
int device)
Advise about the usage of a given memory range
Advise the Unified Memory subsystem about the usage pattern for the memory range starting at devPtr with a size of count bytes. |
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)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCuda.cudaMemcpyFromArrayAsync(Pointer dst,
cudaArray src,
long wOffset,
long hOffset,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCuda.cudaMemcpyFromSymbol(Pointer dst,
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,
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)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCuda.cudaMemcpyToArrayAsync(cudaArray dst,
long wOffset,
long hOffset,
Pointer src,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCuda.cudaMemcpyToSymbol(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(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.cudaMemPrefetchAsync(Pointer devPtr,
long count,
int dstDevice,
cudaStream_t stream)
Prefetches memory to the specified destination device
Prefetches memory to the specified destination device. |
static int |
JCuda.cudaMemRangeGetAttribute(Pointer data,
long dataSize,
int attribute,
Pointer devPtr,
long count)
Query an attribute of a given memory range.
|
static int |
JCuda.cudaMemRangeGetAttributes(Pointer[] data,
long[] dataSizes,
int[] attributes,
long numAttributes,
Pointer devPtr,
long count)
Query attributes of a given memory range.
|
static int |
JCuda.cudaMemRangeGetAttributes(Pointer[] data,
long[] dataSizes,
int[] attributes,
long numAttributes,
Pointer devPtr,
long count)
Query attributes of a given memory range.
|
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)
Deprecated.
This function is deprecated as of CUDA 7.0
|
static int |
JCuda.cudaStreamAttachMemAsync(cudaStream_t stream,
Pointer devPtr,
long length,
int flags) |
Constructor and Description |
---|
cudaAccessPolicyWindow(Pointer base_ptr,
long num_bytes,
float hitRatio,
int hitProp,
int missProp)
Creates a new cudaAccessPolicyWindow with the given values
|
Copyright © 2020. All rights reserved.