Package | Description |
---|---|
jcuda.driver |
Contains the classes related to the JCuda driver API.
|
jcuda.runtime |
Contains the classes related to the JCuda runtime API.
|
Constructor and Description |
---|
CUstream(cudaStream_t stream)
Creates a CUstream for the given
cudaStream_t . |
Modifier and Type | Field and Description |
---|---|
static cudaStream_t |
JCuda.cudaStreamLegacy
Stream handle that can be passed as a cudaStream_t to use an implicit stream
with legacy synchronization behavior.
|
static cudaStream_t |
JCuda.cudaStreamPerThread
Stream handle that can be passed as a cudaStream_t to use an implicit stream
with per-thread synchronization behavior.
|
Modifier and Type | Method and Description |
---|---|
void |
cudaStreamCallback.call(cudaStream_t stream,
int status,
Object userData)
The function that will be called
|
static int |
JCuda.cudaConfigureCall(dim3 gridDim,
dim3 blockDim,
long sharedMem,
cudaStream_t stream)
Deprecated.
This function is deprecated as of CUDA 7.0
|
static int |
JCuda.cudaEventRecord(cudaEvent_t event,
cudaStream_t stream)
Records an event.
|
static int |
JCuda.cudaGLMapBufferObjectAsync(Pointer devPtr,
int bufObj,
cudaStream_t stream)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCuda.cudaGLUnmapBufferObjectAsync(int bufObj,
cudaStream_t stream)
Deprecated.
Deprecated as of CUDA 3.0
|
static int |
JCuda.cudaGraphicsMapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Map graphics resources for access by CUDA.
|
static int |
JCuda.cudaGraphicsUnmapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Unmap graphics resources.
|
static int |
JCuda.cudaLaunchHostFunc(cudaStream_t stream,
cudaHostFn fn,
Object userData)
Enqueues a host function call in a stream
Enqueues a host function to run in a stream. |
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.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.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.cudaMemcpy3DAsync(cudaMemcpy3DParms p,
cudaStream_t stream)
Copies data between 3D objects.
|
static int |
JCuda.cudaMemcpy3DPeerAsync(cudaMemcpy3DPeerParms p,
cudaStream_t stream)
Copies memory between devices asynchronously.
|
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.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.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.cudaMemcpyPeerAsync(Pointer dst,
int dstDevice,
Pointer src,
int srcDevice,
long count,
cudaStream_t stream)
Copies memory between two devices asynchronously.
|
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.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.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.cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr,
int value,
cudaExtent extent,
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.cudaStreamAddCallback(cudaStream_t stream,
cudaStreamCallback callback,
Object userData,
int flags)
Add a callback to a compute stream.
|
static int |
JCuda.cudaStreamAttachMemAsync(cudaStream_t stream,
Pointer devPtr,
long length,
int flags) |
static int |
JCuda.cudaStreamCopyAttributes(cudaStream_t dst,
cudaStream_t src)
\brief Copies attributes from source stream to destination stream. |
static int |
JCuda.cudaStreamCreate(cudaStream_t stream)
Create an asynchronous stream.
|
static int |
JCuda.cudaStreamCreateWithFlags(cudaStream_t pStream,
int flags)
Create an asynchronous stream.
|
static int |
JCuda.cudaStreamCreateWithPriority(cudaStream_t pStream,
int flags,
int priority) |
static int |
JCuda.cudaStreamDestroy(cudaStream_t stream)
Destroys and cleans up an asynchronous stream.
|
static int |
JCuda.cudaStreamGetAttribute(cudaStream_t hStream,
int attr,
cudaStreamAttrValue value_out)
\brief Queries stream attribute. |
static int |
JCuda.cudaStreamGetFlags(cudaStream_t hStream,
int[] flags) |
static int |
JCuda.cudaStreamGetPriority(cudaStream_t hStream,
int[] priority) |
static int |
JCuda.cudaStreamQuery(cudaStream_t stream)
Queries an asynchronous stream for completion status.
|
static int |
JCuda.cudaStreamSetAttribute(cudaStream_t hStream,
int attr,
cudaStreamAttrValue value)
\brief Sets stream attribute. |
static int |
JCuda.cudaStreamSynchronize(cudaStream_t stream)
Waits for stream tasks to complete.
|
static int |
JCuda.cudaStreamWaitEvent(cudaStream_t stream,
cudaEvent_t event,
int flags)
Make a compute stream wait on an event.
|
Copyright © 2020. All rights reserved.