|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcuda.runtime.JCuda
public class JCuda
Java bindings for the NVidia CUDA runtime API.
Most comments are taken from the CUDA reference manual
Field Summary | |
---|---|
static int |
cudaDeviceBlockingSync
Device flag - Use blocking synchronization |
static int |
cudaDeviceLmemResizeToMax
Device flag - Keep local memory allocation after launch |
static int |
cudaDeviceMapHost
Device flag - Support mapped pinned allocations |
static int |
cudaDeviceMask
Device flags mask |
static int |
cudaDeviceScheduleAuto
Device flag - Automatic scheduling |
static int |
cudaDeviceScheduleSpin
Device flag - Spin default scheduling |
static int |
cudaDeviceScheduleYield
Device flag - Yield default scheduling |
static int |
cudaEventBlockingSync
Event uses blocking synchronization |
static int |
cudaEventDefault
Default event flag |
static int |
cudaHostAllocDefault
Default page-locked allocation flag |
static int |
cudaHostAllocMapped
Map allocation into device space |
static int |
cudaHostAllocPortable
Pinned memory accessible by all CUDA contexts |
static int |
cudaHostAllocWriteCombined
Write-combined memory |
Method Summary | |
---|---|
static int |
cudaBindTexture(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long size)
Binds size bytes of the memory area pointed to by devPtr to texture reference texRef. |
static int |
cudaBindTexture2D(long[] offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long width,
long height,
long pitch)
Binds the 2D memory area pointed to by devPtr to the texture reference texref. |
static int |
cudaBindTextureToArray(textureReference texref,
cudaArray array,
cudaChannelFormatDesc desc)
Binds the CUDA array array to texture reference texRef. |
static int |
cudaChooseDevice(int[] device,
cudaDeviceProp prop)
Select compute-device which best matches criteria. |
static int |
cudaConfigureCall(dim3 gridDim,
dim3 blockDim,
long sharedMem,
cudaStream_t stream)
Configure a device-launch. |
static cudaChannelFormatDesc |
cudaCreateChannelDesc(int x,
int y,
int z,
int w,
int cudaChannelFormatKind_f)
Returns a channel descriptor. |
static int |
cudaDriverGetVersion(int[] driverVersion)
Returns in driverVersion the version number of the installed CUDA driver. |
static int |
cudaEventCreate(cudaEvent_t event)
Creates an event-object. |
static int |
cudaEventCreateWithFlags(cudaEvent_t event,
int flags)
Creates an event object with the specified flags. |
static int |
cudaEventDestroy(cudaEvent_t event)
Destroys an event-object. |
static int |
cudaEventElapsedTime(float[] ms,
cudaEvent_t start,
cudaEvent_t end)
Computes the elapsed time between events. |
static int |
cudaEventQuery(cudaEvent_t event)
Query if an event has been recorded. |
static int |
cudaEventRecord(cudaEvent_t event,
cudaStream_t stream)
Records an event. |
static int |
cudaEventSynchronize(cudaEvent_t event)
Wait for an event to be recorded. |
static int |
cudaFree(Pointer devPtr)
Frees memory on the GPU. |
static int |
cudaFreeArray(cudaArray array)
Frees an array on the GPU. |
static int |
cudaFreeHost(Pointer ptr)
Frees page-locked memory. |
static int |
cudaFuncGetAttributes(cudaFuncAttributes attr,
java.lang.String func)
This function obtains the attributes of a function specified via func. |
static int |
cudaGetChannelDesc(cudaChannelFormatDesc desc,
cudaArray array)
Low-level texture API. |
static int |
cudaGetDevice(int[] device)
Returns which device is currently being used. |
static int |
cudaGetDeviceCount(int[] count)
Returns the number of compute-capable devices. |
static int |
cudaGetDeviceProperties(cudaDeviceProp prop,
int device)
Returns information on the compute-device. |
static java.lang.String |
cudaGetErrorString(int error)
Returns the message string from an error. |
static int |
cudaGetLastError()
Returns the last error from a run-time call. |
static int |
cudaGetSymbolAddress(Pointer devPtr,
java.lang.String symbol)
Finds the address associated with a CUDA symbol. |
static int |
cudaGetSymbolSize(long[] size,
java.lang.String symbol)
Finds the size of the object associated with a CUDA symbol. |
static int |
cudaGetTextureAlignmentOffset(long[] offset,
textureReference texref)
Returns in *offset the offset that was returned when texture reference texRef was bound. |
static int |
cudaGetTextureReference(textureReference texref,
java.lang.String symbol)
Returns in *texRef the structure associated to the texture reference defined by symbol symbol. |
static int |
cudaGLMapBufferObject(Pointer devPtr,
int bufObj)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLMapBufferObjectAsync(Pointer devPtr,
int bufObj,
cudaStream_t stream)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLRegisterBufferObject(int bufObj)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLSetBufferObjectMapFlags(int bufObj,
int flags)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLSetGLDevice(int device)
Sets the CUDA device for use with GL Interopability. |
static int |
cudaGLUnmapBufferObject(int bufObj)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLUnmapBufferObjectAsync(int bufObj,
cudaStream_t stream)
Deprecated. As of CUDA 3.0 |
static int |
cudaGLUnregisterBufferObject(int bufObj)
Deprecated. As of CUDA 3.0 |
static int |
cudaGraphicsGLRegisterBuffer(cudaGraphicsResource resource,
int buffer,
int Flags)
Registers the buffer object specified by buffer for access by CUDA. |
static int |
cudaGraphicsGLRegisterImage(cudaGraphicsResource resource,
int image,
int target,
int Flags)
Registers the texture or renderbuffer object specified by image for access by CUDA. target must match the type of the object. |
static int |
cudaGraphicsMapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Maps the count graphics resources in resources for access by CUDA. |
static int |
cudaGraphicsResourceGetMappedPointer(Pointer devPtr,
long[] size,
cudaGraphicsResource resource)
Returns in *devPtr a pointer through which the mapped graphics resource resource may be accessed. |
static int |
cudaGraphicsResourceSetMapFlags(cudaGraphicsResource resource,
int flags)
Set flags for mapping the graphics resource resource. |
static int |
cudaGraphicsSubResourceGetMappedArray(cudaArray arrayPtr,
cudaGraphicsResource resource,
int arrayIndex,
int mipLevel)
Returns in *array an array through which the subresource of the mapped graphics resource resource which corresponds to array index arrayIndex and mipmap level mipLevel may be accessed. |
static int |
cudaGraphicsUnmapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Unmaps the count graphics resources in resources. |
static int |
cudaGraphicsUnregisterResource(cudaGraphicsResource resource)
Unregisters the graphics resource resource so it is not accessible by CUDA unless registered again. |
static int |
cudaHostAlloc(Pointer ptr,
long size,
int flags)
Allocates count bytes of host memory that is page-locked and accessible to the device. |
static int |
cudaHostGetDevicePointer(Pointer pDevice,
Pointer pHost,
int flags)
Passes back the device pointer corresponding to the mapped, pinned host buffer allocated by cudaHostAlloc(). |
static int |
cudaLaunch(java.lang.String symbol)
Launches a device function. |
static int |
cudaMalloc(Pointer devPtr,
long size)
Allocate memory on the GPU. |
static int |
cudaMalloc3D(cudaPitchedPtr pitchDevPtr,
cudaExtent extent)
Allocates logical 1D, 2D, or 3D memory objects on the GPU. |
static int |
cudaMalloc3DArray(cudaArray arrayPtr,
cudaChannelFormatDesc desc,
cudaExtent extent)
Allocate an array on the GPU. |
static int |
cudaMallocArray(cudaArray array,
cudaChannelFormatDesc desc,
long width,
long height)
Allocate an array on the GPU. |
static int |
cudaMallocHost(Pointer ptr,
long size)
Allocates page-locked memory on the host. |
static int |
cudaMallocPitch(Pointer devPtr,
long[] pitch,
long width,
long height)
Allocates memory on the GPU. |
static int |
cudaMemcpy(Pointer dst,
Pointer src,
long count,
int cudaMemcpyKind_kind)
Copies data between GPU and host. |
static int |
cudaMemcpy2D(Pointer dst,
long dpitch,
Pointer src,
long spitch,
long width,
long height,
int cudaMemcpyKind_kind)
Copies data between host and device. |
static int |
cudaMemcpy2DArrayToArray(cudaArray dst,
long wOffsetDst,
long hOffsetDst,
cudaArray src,
long wOffsetSrc,
long hOffsetSrc,
long width,
long height,
int cudaMemcpyKind_kind)
Copies data between host and device. |
static int |
cudaMemcpy2DAsync(Pointer dst,
long dpitch,
Pointer src,
long spitch,
long width,
long height,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
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 |
cudaMemcpy2DFromArrayAsync(Pointer dst,
long dpitch,
cudaArray src,
long wOffset,
long hOffset,
long width,
long height,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
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 |
cudaMemcpy2DToArrayAsync(cudaArray dst,
long wOffset,
long hOffset,
Pointer src,
long spitch,
long width,
long height,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemcpy3D(cudaMemcpy3DParms p)
Copies data between between 3D objects. |
static int |
cudaMemcpy3DAsync(cudaMemcpy3DParms p,
cudaStream_t stream)
|
static int |
cudaMemcpyArrayToArray(cudaArray dst,
long wOffsetDst,
long hOffsetDst,
cudaArray src,
long wOffsetSrc,
long hOffsetSrc,
long count,
int cudaMemcpyKind_kind)
Copies data between host and device. |
static int |
cudaMemcpyAsync(Pointer dst,
Pointer src,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemcpyFromArray(Pointer dst,
cudaArray src,
long wOffset,
long hOffset,
long count,
int cudaMemcpyKind_kind)
Copies data between host and device. |
static int |
cudaMemcpyFromArrayAsync(Pointer dst,
cudaArray src,
long wOffset,
long hOffset,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemcpyFromSymbol(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind)
Copies data from GPU to host memory. |
static int |
cudaMemcpyFromSymbolAsync(Pointer dst,
java.lang.String symbol,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemcpyToArray(cudaArray dst,
long wOffset,
long hOffset,
Pointer src,
long count,
int cudaMemcpyKind_kind)
Copies data between host and device. |
static int |
cudaMemcpyToArrayAsync(cudaArray dst,
long wOffset,
long hOffset,
Pointer src,
long count,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemcpyToSymbol(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind)
Copies data from host memory to GPU. |
static int |
cudaMemcpyToSymbolAsync(java.lang.String symbol,
Pointer src,
long count,
long offset,
int cudaMemcpyKind_kind,
cudaStream_t stream)
|
static int |
cudaMemset(Pointer mem,
int c,
long count)
Initializes or sets GPU memory to a value. |
static int |
cudaMemset2D(Pointer mem,
long pitch,
int c,
long width,
long height)
Initializes or sets GPU memory to a value. |
static int |
cudaMemset3D(cudaPitchedPtr pitchDevPtr,
int value,
cudaExtent extent)
Initializes or sets GPU memory to a value. |
static int |
cudaRuntimeGetVersion(int[] runtimeVersion)
Returns in runtimeVersion the version number of the installed CUDA Runtime. |
static int |
cudaSetDevice(int device)
Sets device to be used for GPU executions. |
static int |
cudaSetDeviceFlags(int flags)
Records flags as the flags to use when the active host thread executes device code. |
static int |
cudaSetupArgument(Pointer arg,
long size,
long offset)
Configure a device-launch. |
static int |
cudaSetValidDevices(int[] device_arr,
int len)
Sets a list of devices for CUDA execution in priority order using device_arr. |
static int |
cudaStreamCreate(cudaStream_t stream)
Create an async stream. |
static int |
cudaStreamDestroy(cudaStream_t stream)
Destroys and cleans-up a stream object. |
static int |
cudaStreamQuery(cudaStream_t stream)
Queries a stream for completion-status. |
static int |
cudaStreamSynchronize(cudaStream_t stream)
Waits for stream tasks to complete. |
static int |
cudaThreadExit()
Exit and clean-up from CUDA launches. |
static int |
cudaThreadSynchronize()
Wait for compute-device to finish. |
static int |
cudaUnbindTexture(textureReference texref)
Unbinds the texture bound to texture reference texRef. |
static void |
initialize()
Initializes the native library. |
static void |
setEmulation(boolean emulation)
Deprecated. The emulation mode has been deprecated in CUDA 3.0. This function no longer has any effect, and will be removed in the next release. |
static void |
setExceptionsEnabled(boolean enabled)
Enables or disables exceptions. |
static void |
setLogLevel(LogLevel logLevel)
Set the specified log level for the JCuda runtime library. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int cudaHostAllocDefault
public static final int cudaHostAllocPortable
public static final int cudaHostAllocMapped
public static final int cudaHostAllocWriteCombined
public static final int cudaEventDefault
public static final int cudaEventBlockingSync
public static final int cudaDeviceScheduleAuto
public static final int cudaDeviceScheduleSpin
public static final int cudaDeviceScheduleYield
public static final int cudaDeviceBlockingSync
public static final int cudaDeviceMapHost
public static final int cudaDeviceLmemResizeToMax
public static final int cudaDeviceMask
Method Detail |
---|
public static void setEmulation(boolean emulation)
public static void setLogLevel(LogLevel logLevel)
logLevel
- The log level to use.public static void setExceptionsEnabled(boolean enabled)
enabled
- Whether exceptions are enabledpublic static void initialize()
public static int cudaGetDeviceCount(int[] count)
cudaGetDevice(int[])
,
cudaSetDevice(int)
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaSetDevice(int device)
cudaGetDeviceCount(int[])
,
cudaGetDevice(int[])
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaSetDeviceFlags(int flags)
flags
- - Parameters for device operation
cudaGetDeviceCount(int[])
,
cudaGetDevice(int[])
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
,
cudaSetDevice(int)
,
cudaSetValidDevices(int[], int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaSetValidDevices(int[] device_arr, int len)
device_arr
- - List of devices to trylen
- - Number of devices in specified list
cudaGetDeviceCount(int[])
,
cudaSetDevice(int)
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
,
cudaSetDeviceFlags(int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaGetDevice(int[] device)
cudaGetDeviceCount(int[])
,
cudaSetDevice(int)
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaGetDeviceProperties(cudaDeviceProp prop, int device)
struct cudaDeviceProp { char name[256]; size_t totalGlobalMem; size_t sharedMemPerBlock; int regsPerBlock; int warpSize; size_t memPitch; int maxThreadsPerBlock; int maxThreadsDim[3]; int maxGridSize[3]; size_t totalConstMem; int major; int minor; int clockRate; size_t textureAlignment; int deviceOverlap; int multiProcessorCount; }where: name is an ASCII string identifying the device; totalGlobalMem is the total amount of global memory available on the device in bytes; sharedMemPerBlock is the maximum amount of shared memory available to a thread block in bytes; this amount is shared by all thread blocks simultaneously resident on a multiprocessor; regsPerBlock is the maximum number of 32-bit registers available to a thread block; this number is shared by all thread blocks simultaneously resident on a multiprocessor; warpSize is the warp size in threads; memPitch is the maximum pitch in bytes allowed by the memory copy functions that involve memory regions allocated through cudaMallocPitch(); maxThreadsPerBlock is the maximum number of threads per block; maxThreadsDim[3] is the maximum sizes of each dimension of a block; maxGridSize[3] is the maximum sizes of each dimension of a grid; totalConstMem is the total amount of constant memory available on the device in bytes; major, minor are the major and minor revision numbers defining the device’s compute capability; clockRate is the clock frequency in kilohertz; textureAlignment is the alignment requirement; texture base addresses that are aligned to textureAlignment bytes do not need an offset applied to texture fetches; deviceOverlap is 1 if the device can concurrently copy memory between host and device while executing a kernel, or 0 if not; multiProcessorCount is the number of multiprocessors on the device.
cudaGetDeviceCount(int[])
,
cudaGetDevice(int[])
,
cudaSetDevice(int)
,
cudaChooseDevice(int[], jcuda.runtime.cudaDeviceProp)
public static int cudaChooseDevice(int[] device, cudaDeviceProp prop)
cudaGetDeviceCount(int[])
,
cudaGetDevice(int[])
,
cudaSetDevice(int)
,
cudaGetDeviceProperties(jcuda.runtime.cudaDeviceProp, int)
public static int cudaMalloc3D(cudaPitchedPtr pitchDevPtr, cudaExtent extent)
struct cudaPitchedPtr { void *ptr; size_t pitch; size_t xsize; size_t ysize; };
struct cudaExtent { size_t width; size_t height; size_t depth; };cudaError_t cudaMalloc3D( struct cudaPitchedPtr* pitchDevPtr, struct cudaExtent extent )
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaMemcpy3D(jcuda.runtime.cudaMemcpy3DParms)
,
cudaMemset3D(jcuda.runtime.cudaPitchedPtr, int, jcuda.runtime.cudaExtent)
,
cudaMalloc3DArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaExtent)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMalloc3DArray(cudaArray arrayPtr, cudaChannelFormatDesc desc, cudaExtent extent)
struct cudaChannelFormatDesc { int x, y, z, w; enum cudaChannelFormatKind f; };where cudaChannelFormatKind is one of cudaChannelFormatKindSigned, cudaChannelFormatKin- dUnsigned, cudaChannelFormatKindFloat.
cudaMalloc3D(jcuda.runtime.cudaPitchedPtr, jcuda.runtime.cudaExtent)
,
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMemset3D(cudaPitchedPtr pitchDevPtr, int value, cudaExtent extent)
struct cudaPitchedPtr { void *ptr; size_t pitch; size_t xsize; size_t ysize; };
struct cudaExtent { size_t width; size_t height; size_t depth; };cudaError_t cudaMemset3D( struct cudaPitchedPtr dstPitchPtr, int value, struct cudaExtent extent )
cudaMemset(jcuda.Pointer, int, long)
,
cudaMemset2D(jcuda.Pointer, long, int, long, long)
,
cudaMalloc3D(jcuda.runtime.cudaPitchedPtr, jcuda.runtime.cudaExtent)
public static int cudaMemcpy3D(cudaMemcpy3DParms p)
struct cudaExtent { size_t width, height, depth; };
struct cudaPos { size_t x, y, z; };
struct cudaMemcpy3DParms { struct cudaArray *srcArray; struct cudaPos srcPos; struct cudaPitchedPtr srcPtr; struct cudaArray *dstArray; struct cudaPos dstPos; struct cudaPitchedPtr dstPtr; struct cudaExtent extent; enum cudaMemcpyKind kind; };cudaError_t cudaMemcpy3D( const struct cudaMemcpy3DParms *p ) cudaError_t cudaMemcpy3DAsync( const struct cudaMemcpy3DParms *p, cudaStream_t stream )
cudaMalloc3D(jcuda.runtime.cudaPitchedPtr, jcuda.runtime.cudaExtent)
,
cudaMalloc3DArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaExtent)
,
cudaMemset3D(jcuda.runtime.cudaPitchedPtr, int, jcuda.runtime.cudaExtent)
,
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpy3DAsync(cudaMemcpy3DParms p, cudaStream_t stream)
cudaMemcpy3D(jcuda.runtime.cudaMemcpy3DParms)
public static int cudaHostAlloc(Pointer ptr, long size, int flags)
ptr
- - Device pointer to allocated memorysize
- - Requested allocation size in bytesflags
- - Requested properties of allocated memory
cudaSetDeviceFlags(int)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaHostGetDevicePointer(Pointer pDevice, Pointer pHost, int flags)
public static int cudaMalloc(Pointer devPtr, long size)
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMallocHost(Pointer ptr, long size)
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMallocPitch(Pointer devPtr, long[] pitch, long width, long height)
cudaMalloc(jcuda.Pointer, long)
,
cudaFree(jcuda.Pointer)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMallocArray(cudaArray array, cudaChannelFormatDesc desc, long width, long height)
struct cudaChannelFormatDesc { int x, y, z, w; enum cudaChannelFormatKind f; };where cudaChannelFormatKind is one of cudaChannelFormatKindSigned, cudaChannelFormatKin- dUnsigned, cudaChannelFormatKindFloat.
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaFree(Pointer devPtr)
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaFreeHost(Pointer ptr)
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaFreeArray(jcuda.runtime.cudaArray)
,
cudaMallocHost(jcuda.Pointer, long)
public static int cudaFreeArray(cudaArray array)
cudaMalloc(jcuda.Pointer, long)
,
cudaMallocPitch(jcuda.Pointer, long[], long, long)
,
cudaFree(jcuda.Pointer)
,
cudaMallocArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc, long, long)
,
cudaMallocHost(jcuda.Pointer, long)
,
cudaFreeHost(jcuda.Pointer)
public static int cudaMemcpy(Pointer dst, Pointer src, long count, int cudaMemcpyKind_kind)
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpyToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpyFromArray(Pointer dst, cudaArray src, long wOffset, long hOffset, long count, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpyArrayToArray(cudaArray dst, long wOffsetDst, long hOffsetDst, cudaArray src, long wOffsetSrc, long hOffsetSrc, long count, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpy2D(Pointer dst, long dpitch, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpy2DToArray(cudaArray dst, long wOffset, long hOffset, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpy2DFromArray(Pointer dst, long dpitch, cudaArray src, long wOffset, long hOffset, long width, long height, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpy2DArrayToArray(cudaArray dst, long wOffsetDst, long hOffsetDst, cudaArray src, long wOffsetSrc, long hOffsetSrc, long width, long height, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpyToSymbol(java.lang.String symbol, Pointer src, long count, long offset, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemcpyFromSymbol(Pointer dst, java.lang.String symbol, long count, long offset, int cudaMemcpyKind_kind)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
,
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
,
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
,
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, int)
,
cudaMemcpy2DArrayToArray(jcuda.runtime.cudaArray, long, long, jcuda.runtime.cudaArray, long, long, long, long, int)
,
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
public static int cudaMemcpyAsync(Pointer dst, Pointer src, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpy(jcuda.Pointer, jcuda.Pointer, long, int)
public static int cudaMemcpyToArrayAsync(cudaArray dst, long wOffset, long hOffset, Pointer src, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpyToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, int)
public static int cudaMemcpyFromArrayAsync(Pointer dst, cudaArray src, long wOffset, long hOffset, long count, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpyFromArray(jcuda.Pointer, jcuda.runtime.cudaArray, long, long, long, int)
public static int cudaMemcpy2DAsync(Pointer dst, long dpitch, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpy2D(jcuda.Pointer, long, jcuda.Pointer, long, long, long, int)
public static int cudaMemcpy2DToArrayAsync(cudaArray dst, long wOffset, long hOffset, Pointer src, long spitch, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpy2DToArray(jcuda.runtime.cudaArray, long, long, jcuda.Pointer, long, long, long, int)
public static int cudaMemcpy2DFromArrayAsync(Pointer dst, long dpitch, cudaArray src, long wOffset, long hOffset, long width, long height, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpy2DFromArray(jcuda.Pointer, long, jcuda.runtime.cudaArray, long, long, long, long, int)
public static int cudaMemcpyToSymbolAsync(java.lang.String symbol, Pointer src, long count, long offset, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpyToSymbol(java.lang.String, jcuda.Pointer, long, long, int)
public static int cudaMemcpyFromSymbolAsync(Pointer dst, java.lang.String symbol, long count, long offset, int cudaMemcpyKind_kind, cudaStream_t stream)
cudaMemcpyFromSymbol(jcuda.Pointer, java.lang.String, long, long, int)
public static int cudaMemset(Pointer mem, int c, long count)
cudaMemset2D(jcuda.Pointer, long, int, long, long)
,
cudaMemset3D(jcuda.runtime.cudaPitchedPtr, int, jcuda.runtime.cudaExtent)
public static int cudaMemset2D(Pointer mem, long pitch, int c, long width, long height)
cudaMemset(jcuda.Pointer, int, long)
,
cudaMemset3D(jcuda.runtime.cudaPitchedPtr, int, jcuda.runtime.cudaExtent)
public static int cudaGetChannelDesc(cudaChannelFormatDesc desc, cudaArray array)
cudaCreateChannelDesc(int, int, int, int, int)
,
cudaGetTextureReference(jcuda.runtime.textureReference, java.lang.String)
,
cudaBindTexture(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaUnbindTexture(jcuda.runtime.textureReference)
,
cudaGetTextureAlignmentOffset(long[], jcuda.runtime.textureReference)
public static cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, int cudaChannelFormatKind_f)
struct cudaChannelFormatDesc { int x, y, z, w; enum cudaChannelFormatKind f; };where cudaChannelFormatKind is one of cudaChannelFormatKindSigned, cudaChannelFormatKindUnsigned, cudaChannelFormatKindFloat.
cudaGetChannelDesc(jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaArray)
,
cudaGetTextureReference(jcuda.runtime.textureReference, java.lang.String)
,
cudaBindTexture(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaUnbindTexture(jcuda.runtime.textureReference)
,
cudaGetTextureAlignmentOffset(long[], jcuda.runtime.textureReference)
public static int cudaGetLastError()
cudaGetErrorString(int)
,
cudaError
public static java.lang.String cudaGetErrorString(int error)
cudaGetLastError()
public static int cudaStreamCreate(cudaStream_t stream)
cudaStreamQuery(jcuda.runtime.cudaStream_t)
,
cudaStreamSynchronize(jcuda.runtime.cudaStream_t)
,
cudaStreamDestroy(jcuda.runtime.cudaStream_t)
public static int cudaStreamDestroy(cudaStream_t stream)
cudaStreamCreate(jcuda.runtime.cudaStream_t)
,
cudaStreamSynchronize(jcuda.runtime.cudaStream_t)
,
cudaStreamDestroy(jcuda.runtime.cudaStream_t)
public static int cudaStreamSynchronize(cudaStream_t stream)
cudaStreamCreate(jcuda.runtime.cudaStream_t)
,
cudaStreamDestroy(jcuda.runtime.cudaStream_t)
,
cudaStreamQuery(jcuda.runtime.cudaStream_t)
public static int cudaStreamQuery(cudaStream_t stream)
cudaStreamCreate(jcuda.runtime.cudaStream_t)
,
cudaStreamDestroy(jcuda.runtime.cudaStream_t)
,
cudaStreamSynchronize(jcuda.runtime.cudaStream_t)
public static int cudaEventCreate(cudaEvent_t event)
cudaEventCreateWithFlags(jcuda.runtime.cudaEvent_t, int)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventCreateWithFlags(cudaEvent_t event, int flags)
event
- - Newly created eventflags
- - Flags for new event
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventRecord(cudaEvent_t event, cudaStream_t stream)
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventQuery(cudaEvent_t event)
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventSynchronize(cudaEvent_t event)
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventDestroy(cudaEvent_t event)
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
,
cudaEventElapsedTime(float[], jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaEvent_t)
public static int cudaEventElapsedTime(float[] ms, cudaEvent_t start, cudaEvent_t end)
cudaEventCreate(jcuda.runtime.cudaEvent_t)
,
cudaEventQuery(jcuda.runtime.cudaEvent_t)
,
cudaEventSynchronize(jcuda.runtime.cudaEvent_t)
,
cudaEventDestroy(jcuda.runtime.cudaEvent_t)
,
cudaEventRecord(jcuda.runtime.cudaEvent_t, jcuda.runtime.cudaStream_t)
public static int cudaThreadExit()
cudaThreadSynchronize()
public static int cudaThreadSynchronize()
cudaThreadExit()
public static int cudaGetSymbolAddress(Pointer devPtr, java.lang.String symbol)
cudaGetSymbolSize(long[], java.lang.String)
public static int cudaGetSymbolSize(long[] size, java.lang.String symbol)
cudaGetSymbolAddress(jcuda.Pointer, java.lang.String)
public static int cudaBindTexture(long[] offset, textureReference texref, Pointer devPtr, cudaChannelFormatDesc desc, long size)
public static int cudaBindTexture2D(long[] offset, textureReference texref, Pointer devPtr, cudaChannelFormatDesc desc, long width, long height, long pitch)
offset
- - Offset in bytestexref
- - Texture reference to binddevPtr
- - 2D memory area on devicedesc
- - Channel formatwidth
- - Width in texel unitsheight
- - Height in texel unitspitch
- - Pitch in bytes
cudaCreateChannelDesc(int, int, int, int, int)
,
cudaGetChannelDesc(jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaArray)
,
cudaGetTextureReference(jcuda.runtime.textureReference, java.lang.String)
,
cudaBindTexture(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long)
,
cudaBindTexture2D(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long, long, long)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaGetTextureAlignmentOffset(long[], jcuda.runtime.textureReference)
public static int cudaBindTextureToArray(textureReference texref, cudaArray array, cudaChannelFormatDesc desc)
cudaCreateChannelDesc(int, int, int, int, int)
public static int cudaUnbindTexture(textureReference texref)
public static int cudaGetTextureAlignmentOffset(long[] offset, textureReference texref)
cudaCreateChannelDesc(int, int, int, int, int)
,
cudaGetChannelDesc(jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaArray)
,
cudaGetTextureReference(jcuda.runtime.textureReference, java.lang.String)
,
cudaBindTexture(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaUnbindTexture(jcuda.runtime.textureReference)
public static int cudaGetTextureReference(textureReference texref, java.lang.String symbol)
cudaCreateChannelDesc(int, int, int, int, int)
,
cudaGetChannelDesc(jcuda.runtime.cudaChannelFormatDesc, jcuda.runtime.cudaArray)
,
cudaBindTexture(long[], jcuda.runtime.textureReference, jcuda.Pointer, jcuda.runtime.cudaChannelFormatDesc, long)
,
cudaBindTextureToArray(jcuda.runtime.textureReference, jcuda.runtime.cudaArray, jcuda.runtime.cudaChannelFormatDesc)
,
cudaUnbindTexture(jcuda.runtime.textureReference)
,
cudaGetTextureAlignmentOffset(long[], jcuda.runtime.textureReference)
public static int cudaConfigureCall(dim3 gridDim, dim3 blockDim, long sharedMem, cudaStream_t stream)
cudaLaunch(java.lang.String)
,
cudaSetupArgument(jcuda.Pointer, long, long)
public static int cudaSetupArgument(Pointer arg, long size, long offset)
cudaConfigureCall(jcuda.runtime.dim3, jcuda.runtime.dim3, long, jcuda.runtime.cudaStream_t)
,
cudaLaunch(java.lang.String)
public static int cudaFuncGetAttributes(cudaFuncAttributes attr, java.lang.String func)
attr
- - Return pointer to function’s attributesfunc
- - Function to get attributes of
cudaLaunch(java.lang.String)
public static int cudaLaunch(java.lang.String symbol)
cudaConfigureCall(jcuda.runtime.dim3, jcuda.runtime.dim3, long, jcuda.runtime.cudaStream_t)
,
cudaSetupArgument(jcuda.Pointer, long, long)
public static int cudaGLSetGLDevice(int device)
cudaGLRegisterBufferObject(int)
,
cudaGLMapBufferObject(jcuda.Pointer, int)
,
cudaGLUnmapBufferObject(int)
,
cudaGLUnregisterBufferObject(int)
public static int cudaGraphicsGLRegisterImage(cudaGraphicsResource resource, int image, int target, int Flags)
cudaGLSetGLDevice(int)
,
cudaGraphicsUnregisterResource(jcuda.runtime.cudaGraphicsResource)
,
cudaGraphicsMapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
,
cudaGraphicsSubResourceGetMappedArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaGraphicsResource, int, int)
public static int cudaGraphicsGLRegisterBuffer(cudaGraphicsResource resource, int buffer, int Flags)
cudaGraphicsUnregisterResource(jcuda.runtime.cudaGraphicsResource)
,
cudaGraphicsMapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
,
cudaGraphicsResourceGetMappedPointer(jcuda.Pointer, long[], jcuda.runtime.cudaGraphicsResource)
public static int cudaGLRegisterBufferObject(int bufObj)
cudaGLSetGLDevice(int)
,
cudaGLMapBufferObject(jcuda.Pointer, int)
,
cudaGLUnmapBufferObject(int)
,
cudaGLUnregisterBufferObject(int)
public static int cudaGLMapBufferObject(Pointer devPtr, int bufObj)
cudaGLSetGLDevice(int)
,
cudaGLRegisterBufferObject(int)
,
cudaGLUnmapBufferObject(int)
,
cudaGLUnregisterBufferObject(int)
public static int cudaGLUnmapBufferObject(int bufObj)
cudaGLSetGLDevice(int)
,
cudaGLRegisterBufferObject(int)
,
cudaGLMapBufferObject(jcuda.Pointer, int)
,
cudaGLUnregisterBufferObject(int)
public static int cudaGLUnregisterBufferObject(int bufObj)
cudaGLSetGLDevice(int)
,
cudaGLRegisterBufferObject(int)
,
cudaGLMapBufferObject(jcuda.Pointer, int)
,
cudaGLUnmapBufferObject(int)
public static int cudaGLSetBufferObjectMapFlags(int bufObj, int flags)
cudaGraphicsResourceSetMapFlags(jcuda.runtime.cudaGraphicsResource, int)
public static int cudaGLMapBufferObjectAsync(Pointer devPtr, int bufObj, cudaStream_t stream)
public static int cudaGLUnmapBufferObjectAsync(int bufObj, cudaStream_t stream)
cudaGraphicsUnmapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
public static int cudaDriverGetVersion(int[] driverVersion)
driverVersion
- - Returns the CUDA driver version.
cudaRuntimeGetVersion(int[])
public static int cudaRuntimeGetVersion(int[] runtimeVersion)
runtimeVersion
- - Returns the CUDA Runtime version.
cudaDriverGetVersion(int[])
public static int cudaGraphicsUnregisterResource(cudaGraphicsResource resource)
cudaGraphicsGLRegisterBuffer(jcuda.runtime.cudaGraphicsResource, int, int)
,
cudaGraphicsGLRegisterImage(jcuda.runtime.cudaGraphicsResource, int, int, int)
public static int cudaGraphicsResourceSetMapFlags(cudaGraphicsResource resource, int flags)
cudaGraphicsMapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
public static int cudaGraphicsMapResources(int count, cudaGraphicsResource[] resources, cudaStream_t stream)
cudaGraphicsResourceGetMappedPointer(jcuda.Pointer, long[], jcuda.runtime.cudaGraphicsResource)
,
cudaGraphicsSubResourceGetMappedArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaGraphicsResource, int, int)
,
cudaGraphicsUnmapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
public static int cudaGraphicsUnmapResources(int count, cudaGraphicsResource[] resources, cudaStream_t stream)
cudaGraphicsMapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
public static int cudaGraphicsResourceGetMappedPointer(Pointer devPtr, long[] size, cudaGraphicsResource resource)
cudaGraphicsMapResources(int, jcuda.runtime.cudaGraphicsResource[], jcuda.runtime.cudaStream_t)
,
cudaGraphicsSubResourceGetMappedArray(jcuda.runtime.cudaArray, jcuda.runtime.cudaGraphicsResource, int, int)
public static int cudaGraphicsSubResourceGetMappedArray(cudaArray arrayPtr, cudaGraphicsResource resource, int arrayIndex, int mipLevel)
cudaGraphicsResourceGetMappedPointer(jcuda.Pointer, long[], jcuda.runtime.cudaGraphicsResource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |