Package | Description |
---|---|
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 | Field and Description |
---|---|
static CUstream |
JCudaDriver.CU_STREAM_LEGACY
Stream handle that can be passed as a CUstream to use an implicit stream
with legacy synchronization behavior.
|
static CUstream |
JCudaDriver.CU_STREAM_PER_THREAD
Stream handle that can be passed as a CUstream to use an implicit stream
with per-thread synchronization behavior.
|
CUstream |
CUDA_LAUNCH_PARAMS.hStream
Stream identifier
|
Modifier and Type | Method and Description |
---|---|
void |
CUstreamCallback.call(CUstream hStream,
int status,
Object userData)
The function that will be called
|
static int |
JCudaDriver.cuEventRecord(CUevent hEvent,
CUstream hStream)
Records an event.
|
static int |
JCudaDriver.cuGLMapBufferObjectAsync(CUdeviceptr dptr,
long[] size,
int buffer,
CUstream hStream)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCudaDriver.cuGLUnmapBufferObjectAsync(int buffer,
CUstream hStream)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCudaDriver.cuGraphicsMapResources(int count,
CUgraphicsResource[] resources,
CUstream hStream)
Map graphics resources for access by CUDA.
|
static int |
JCudaDriver.cuGraphicsUnmapResources(int count,
CUgraphicsResource[] resources,
CUstream hStream)
Unmap graphics resources.
|
static int |
JCudaDriver.cuGraphLaunch(CUgraphExec hGraphExec,
CUstream hStream)
Launches an executable graph in a stream.
|
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.cuLaunchGridAsync(CUfunction f,
int grid_width,
int grid_height,
CUstream hStream)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuLaunchHostFunc(CUstream hStream,
CUhostFn fn,
Object userData)
Enqueues a host function call in a stream.
|
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.cuMemcpy2DAsync(CUDA_MEMCPY2D pCopy,
CUstream hStream)
Copies memory for 2D arrays.
|
static int |
JCudaDriver.cuMemcpy3DAsync(CUDA_MEMCPY3D pCopy,
CUstream hStream)
Copies memory for 3D arrays.
|
static int |
JCudaDriver.cuMemcpy3DPeerAsync(CUDA_MEMCPY3D_PEER pCopy,
CUstream hStream)
Copies memory between contexts asynchronously.
|
static int |
JCudaDriver.cuMemcpyAsync(CUdeviceptr dst,
CUdeviceptr src,
long ByteCount,
CUstream hStream)
Copies memory asynchronously.
|
static int |
JCudaDriver.cuMemcpyAtoHAsync(Pointer dstHost,
CUarray srcArray,
long srcIndex,
long ByteCount,
CUstream hStream)
Copies memory from Array to Host.
|
static int |
JCudaDriver.cuMemcpyDtoDAsync(CUdeviceptr dstDevice,
CUdeviceptr srcDevice,
long ByteCount,
CUstream hStream)
Copies memory from Device to Device.
|
static int |
JCudaDriver.cuMemcpyDtoHAsync(Pointer dstHost,
CUdeviceptr srcDevice,
long ByteCount,
CUstream hStream)
Copies memory from Device to Host.
|
static int |
JCudaDriver.cuMemcpyHtoAAsync(CUarray dstArray,
long dstIndex,
Pointer pSrc,
long ByteCount,
CUstream hStream)
Copies memory from Host to Array.
|
static int |
JCudaDriver.cuMemcpyHtoDAsync(CUdeviceptr dstDevice,
Pointer srcHost,
long ByteCount,
CUstream hStream)
Copies memory from Host to Device.
|
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.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.cuMemsetD16Async(CUdeviceptr dstDevice,
short us,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D16Async(CUdeviceptr dstDevice,
long dstPitch,
short us,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D32Async(CUdeviceptr dstDevice,
long dstPitch,
int ui,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD2D8Async(CUdeviceptr dstDevice,
long dstPitch,
byte uc,
long Width,
long Height,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD32Async(CUdeviceptr dstDevice,
int ui,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuMemsetD8Async(CUdeviceptr dstDevice,
byte uc,
long N,
CUstream hStream)
Sets device memory.
|
static int |
JCudaDriver.cuStreamAddCallback(CUstream hStream,
CUstreamCallback callback,
Object userData,
int flags)
Add a callback to a compute stream.
|
static int |
JCudaDriver.cuStreamAttachMemAsync(CUstream hStream,
CUdeviceptr dptr,
long length,
int flags)
Attach memory to a stream asynchronously.
|
static int |
JCudaDriver.cuStreamBatchMemOp(CUstream stream,
int count,
CUstreamBatchMemOpParams[] paramArray,
int flags)
NOTE: This function is not yet supported in JCuda, and will throw an UnsupportedOperationException! |
static int |
JCudaDriver.cuStreamBeginCapture(CUstream hStream,
int mode)
Begins graph capture on a stream.
|
static int |
JCudaDriver.cuStreamCopyAttributes(CUstream dst,
CUstream src)
Copies attributes from source stream to destination stream
Copies attributes from source stream \p src to destination stream \p dst.
|
static int |
JCudaDriver.cuStreamCreate(CUstream phStream,
int Flags)
Create a stream.
|
static int |
JCudaDriver.cuStreamCreateWithPriority(CUstream phStream,
int flags,
int priority)
Create a stream with the given priority
Creates a stream with the specified priority and returns a handle in phStream.
|
static int |
JCudaDriver.cuStreamDestroy(CUstream hStream)
Destroys a stream.
|
static int |
JCudaDriver.cuStreamEndCapture(CUstream hStream,
CUgraph phGraph)
Ends capture on a stream, returning the captured graph.
|
static int |
JCudaDriver.cuStreamGetAttribute(CUstream hStream,
int attr,
CUstreamAttrValue value_out)
Queries stream attribute.
|
static int |
JCudaDriver.cuStreamGetCaptureInfo(CUstream hStream,
int[] captureStatus,
long[] id)
Query capture status of a stream
Query the capture status of a stream and and get an id for
the capture sequence, which is unique over the lifetime of the process.
|
static int |
JCudaDriver.cuStreamGetCtx(CUstream hStream,
CUcontext pctx)
Query the context associated with a stream.
|
static int |
JCudaDriver.cuStreamGetFlags(CUstream hStream,
int[] flags)
Query the flags of a given stream.
|
static int |
JCudaDriver.cuStreamGetPriority(CUstream hStream,
int[] priority)
Query the priority of a given stream.
|
static int |
JCudaDriver.cuStreamIsCapturing(CUstream hStream,
int[] captureStatus)
Returns a stream's capture status
Return the capture status of \p hStream via \p captureStatus.
|
static int |
JCudaDriver.cuStreamQuery(CUstream hStream)
Determine status of a compute stream.
|
static int |
JCudaDriver.cuStreamSetAttribute(CUstream hStream,
int attr,
CUstreamAttrValue value)
Sets stream attribute.
|
static int |
JCudaDriver.cuStreamSynchronize(CUstream hStream)
Wait until a stream's tasks are completed.
|
static int |
JCudaDriver.cuStreamWaitEvent(CUstream hStream,
CUevent hEvent,
int Flags)
Make a compute stream wait on an event.
|
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.
|
Constructor and Description |
---|
cudaStream_t(CUstream stream)
Creates a cudaStream_t for the given
CUstream . |
Copyright © 2020. All rights reserved.