Package | Description |
---|---|
jcuda.driver |
Contains the classes related to the JCuda driver API.
|
Modifier and Type | Field and Description |
---|---|
CUdeviceptr |
CUDA_MEMSET_NODE_PARAMS.dst
Destination device pointer
|
CUdeviceptr |
CUDA_MEMCPY3D_PEER.dstDevice
The destination pointer.
|
CUdeviceptr |
CUDA_MEMCPY3D.dstDevice
The destination pointer.
|
CUdeviceptr |
CUDA_MEMCPY2D.dstDevice
The destination pointer.
|
CUdeviceptr |
CUDA_RESOURCE_DESC.linear_devPtr
Device pointer for
CUresourcetype.CU_RESOURCE_TYPE_LINEAR |
CUdeviceptr |
CUDA_RESOURCE_DESC.pitch2D_devPtr
Device pointer for
CUresourcetype.CU_RESOURCE_TYPE_PITCH2D |
CUdeviceptr |
CUDA_MEMCPY3D_PEER.srcDevice
The source pointer.
|
CUdeviceptr |
CUDA_MEMCPY3D.srcDevice
The source pointer.
|
CUdeviceptr |
CUDA_MEMCPY2D.srcDevice
The source pointer.
|
Modifier and Type | Method and Description |
---|---|
CUdeviceptr |
CUdeviceptr.withByteOffset(long byteOffset) |
Modifier and Type | Method and Description |
---|---|
static int |
JCudaDriver.cuGLMapBufferObject(CUdeviceptr dptr,
long[] size,
int bufferobj)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCudaDriver.cuGLMapBufferObjectAsync(CUdeviceptr dptr,
long[] size,
int buffer,
CUstream hStream)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCudaDriver.cuGraphicsResourceGetMappedPointer(CUdeviceptr pDevPtr,
long[] pSize,
CUgraphicsResource resource)
Get a device pointer through which to access a mapped graphics resource.
|
static int |
JCudaDriver.cuIpcCloseMemHandle(CUdeviceptr dptr)
Close memory mapped with cuIpcOpenMemHandle.
|
static int |
JCudaDriver.cuIpcGetMemHandle(CUipcMemHandle pHandle,
CUdeviceptr dptr)
Gets an interprocess memory handle for an existing device memory
allocation.
|
static int |
JCudaDriver.cuIpcOpenMemHandle(CUdeviceptr pdptr,
CUipcMemHandle handle,
int Flags)
CUresult cuIpcOpenMemHandle (
CUdeviceptr* pdptr,
CUipcMemHandle 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 |
JCudaDriver.cuMemAddressFree(CUdeviceptr ptr,
long size)
Free an address range reservation.
|
static int |
JCudaDriver.cuMemAddressReserve(CUdeviceptr ptr,
long size,
long alignment,
CUdeviceptr addr,
long flags)
Allocate an address range reservation.
|
static int |
JCudaDriver.cuMemAdvise(CUdeviceptr devPtr,
long count,
int advice,
CUdevice 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 |
JCudaDriver.cuMemAlloc(CUdeviceptr dptr,
long bytesize)
Allocates device memory.
|
static int |
JCudaDriver.cuMemAllocManaged(CUdeviceptr dptr,
long bytesize,
int flags)
CUresult cuMemAllocManaged (
CUdeviceptr* dptr,
size_t bytesize,
unsigned int flags )
Allocates memory that will be automatically managed by the Unified
Memory system.
|
static int |
JCudaDriver.cuMemAllocPitch(CUdeviceptr dptr,
long[] pPitch,
long WidthInBytes,
long Height,
int ElementSizeBytes)
Allocates pitched device memory.
|
static int |
JCudaDriver.cuMemcpy(CUdeviceptr dst,
CUdeviceptr src,
long ByteCount)
Copies memory.
|
static int |
JCudaDriver.cuMemcpyAsync(CUdeviceptr dst,
CUdeviceptr src,
long ByteCount,
CUstream hStream)
Copies memory asynchronously.
|
static int |
JCudaDriver.cuMemcpyAtoD(CUdeviceptr dstDevice,
CUarray hSrc,
long SrcIndex,
long ByteCount)
Copies memory from Array to Device.
|
static int |
JCudaDriver.cuMemcpyDtoA(CUarray dstArray,
long dstIndex,
CUdeviceptr srcDevice,
long ByteCount)
Copies memory from Device to Array.
|
static int |
JCudaDriver.cuMemcpyDtoD(CUdeviceptr dstDevice,
CUdeviceptr srcDevice,
long ByteCount)
Copies memory from Device to Device.
|
static int |
JCudaDriver.cuMemcpyDtoDAsync(CUdeviceptr dstDevice,
CUdeviceptr srcDevice,
long ByteCount,
CUstream hStream)
Copies memory from Device to Device.
|
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.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.cuMemcpyPeer(CUdeviceptr dstDevice,
CUcontext dstContext,
CUdeviceptr srcDevice,
CUcontext srcContext,
long ByteCount)
Copies device memory between two contexts.
|
static int |
JCudaDriver.cuMemcpyPeerAsync(CUdeviceptr dstDevice,
CUcontext dstContext,
CUdeviceptr srcDevice,
CUcontext srcContext,
long ByteCount,
CUstream hStream)
Copies device memory between two contexts asynchronously.
|
static int |
JCudaDriver.cuMemFree(CUdeviceptr dptr)
Frees device memory.
|
static int |
JCudaDriver.cuMemGetAccess(long[] flags,
CUmemLocation location,
CUdeviceptr ptr)
Get the access \p flags set for the given \p location and \p ptr
|
static int |
JCudaDriver.cuMemGetAddressRange(CUdeviceptr pbase,
long[] psize,
CUdeviceptr dptr)
Get information on memory allocations.
|
static int |
JCudaDriver.cuMemHostGetDevicePointer(CUdeviceptr ret,
Pointer p,
int Flags)
Passes back device pointer of mapped pinned memory.
|
static int |
JCudaDriver.cuMemMap(CUdeviceptr ptr,
long size,
long offset,
CUmemGenericAllocationHandle handle,
long flags)
Maps an allocation handle to a reserved virtual address range.
|
static int |
JCudaDriver.cuMemPrefetchAsync(CUdeviceptr devPtr,
long count,
CUdevice dstDevice,
CUstream hStream)
Prefetches memory to the specified destination device
Prefetches memory to the specified destination device. devPtr is the base device pointer of the memory to be prefetched and dstDevice is the destination device. count specifies the number of bytes to copy. |
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.cuMemSetAccess(CUdeviceptr ptr,
long size,
CUmemAccessDesc[] desc,
long count)
Set the access flags for each location specified in \p desc for the given virtual address range.
|
static int |
JCudaDriver.cuMemsetD16(CUdeviceptr dstDevice,
short us,
long N)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD16Async(CUdeviceptr dstDevice,
short us,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D16(CUdeviceptr dstDevice,
long dstPitch,
short us,
long Width,
long Height)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD2D16Async(CUdeviceptr dstDevice,
long dstPitch,
short us,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D32(CUdeviceptr dstDevice,
long dstPitch,
int ui,
long Width,
long Height)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD2D32Async(CUdeviceptr dstDevice,
long dstPitch,
int ui,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D8(CUdeviceptr dstDevice,
long dstPitch,
byte uc,
long Width,
long Height)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD2D8Async(CUdeviceptr dstDevice,
long dstPitch,
byte uc,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD32(CUdeviceptr dstDevice,
int ui,
long N)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD32Async(CUdeviceptr dstDevice,
int ui,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD8(CUdeviceptr dstDevice,
byte uc,
long N)
Initializes device memory.
|
static int |
JCudaDriver.cuMemsetD8Async(CUdeviceptr dstDevice,
byte uc,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemUnmap(CUdeviceptr ptr,
long size)
Unmap the backing memory of a given address range.
|
static int |
JCudaDriver.cuModuleGetGlobal(CUdeviceptr dptr,
long[] bytes,
CUmodule hmod,
String name)
Returns a global pointer from a module.
|
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). |
static int |
JCudaDriver.cuStreamAttachMemAsync(CUstream hStream,
CUdeviceptr dptr,
long length,
int flags)
Attach memory to a stream asynchronously.
|
static int |
JCudaDriver.cuStreamWaitValue32(CUstream stream,
CUdeviceptr addr,
int value,
int flags)
Wait on a memory location.
|
static int |
JCudaDriver.cuStreamWaitValue64(CUstream stream,
CUdeviceptr addr,
long value,
int flags)
Wait on a memory location.
|
static int |
JCudaDriver.cuStreamWriteValue32(CUstream stream,
CUdeviceptr addr,
int value,
int flags)
Write a value to memory.
|
static int |
JCudaDriver.cuStreamWriteValue64(CUstream stream,
CUdeviceptr addr,
long value,
int flags)
Write a value to memory.
|
static int |
JCudaDriver.cuTexRefGetAddress(CUdeviceptr pdptr,
CUtexref hTexRef)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCudaDriver.cuTexRefSetAddress(long[] ByteOffset,
CUtexref hTexRef,
CUdeviceptr dptr,
long bytes)
Deprecated.
Deprecated as of CUDA 10.1
|
static int |
JCudaDriver.cuTexRefSetAddress2D(CUtexref hTexRef,
CUDA_ARRAY_DESCRIPTOR desc,
CUdeviceptr dptr,
long PitchInBytes)
Deprecated.
Deprecated as of CUDA 10.1
|
Constructor and Description |
---|
CUdeviceptr(CUdeviceptr other)
Copy constructor
|
CUdeviceptr(CUdeviceptr other,
long byteOffset)
Creates a copy of the given pointer, with an
additional byte offset
|
Copyright © 2020. All rights reserved.