Package | Description |
---|---|
jcuda.driver |
Modifier and Type | Field and Description |
---|---|
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)
Maps an OpenGL buffer object.
|
static int |
JCudaDriver.cuGLMapBufferObjectAsync(CUdeviceptr dptr,
long[] size,
int buffer,
CUstream hStream)
Maps an OpenGL buffer object.
|
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 )
|
static int |
JCudaDriver.cuMemAlloc(CUdeviceptr dptr,
long bytesize)
Allocates device memory.
|
static int |
JCudaDriver.cuMemAllocManaged(CUdeviceptr dptr,
long bytesize,
int flags) |
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.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.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.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.cuPointerSetAttribute(Pointer value,
int attribute,
CUdeviceptr ptr) |
static int |
JCudaDriver.cuStreamAttachMemAsync(CUstream hStream,
CUdeviceptr dptr,
long length,
int flags) |
static int |
JCudaDriver.cuTexRefGetAddress(CUdeviceptr pdptr,
CUtexref hTexRef)
Gets the address associated with a texture reference.
|
static int |
JCudaDriver.cuTexRefSetAddress(long[] ByteOffset,
CUtexref hTexRef,
CUdeviceptr dptr,
long bytes)
Binds an address as a texture reference.
|
static int |
JCudaDriver.cuTexRefSetAddress2D(CUtexref hTexRef,
CUDA_ARRAY_DESCRIPTOR desc,
CUdeviceptr dptr,
long PitchInBytes)
Binds an address as a 2D texture reference.
|
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 © 2014. All Rights Reserved.