|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcuda.driver.JCudaDriver
public class JCudaDriver
Java bindings for the NVidia CUDA driver API.
Most comments are taken from the CUDA reference manual
Field Summary | |
---|---|
static int |
CU_MEMHOSTALLOC_DEVICEMAP
If set, host memory is mapped into CUDA address space and JCudaDriver#cuMemHostGetDevicePointer may be called on the host pointer. |
static int |
CU_MEMHOSTALLOC_PORTABLE
If set, host memory is portable between CUDA contexts. |
static int |
CU_MEMHOSTALLOC_WRITECOMBINED
If set, host memory is allocated as write-combined - fast to write, faster to DMA, slow to read except via SSE4 streaming load instruction (MOVNTDQA). |
static int |
CU_PARAM_TR_DEFAULT
For texture references loaded into the module, use default texunit from texture reference |
static int |
CU_TRSA_OVERRIDE_FORMAT
Override the texref format with a format inferred from the array |
static int |
CU_TRSF_NORMALIZED_COORDINATES
Use normalized texture coordinates in the range [0,1) instead of [0,dim) |
static int |
CU_TRSF_READ_AS_INTEGER
Read the texture as integers rather than promoting the values to floats in the range [0,1] |
static int |
CUDA_ARRAY3D_2DARRAY
If set, the CUDA array contains an array of 2D slices and the Depth member of CUDA_ARRAY3D_DESCRIPTOR specifies the number of slices, not the depth of a 3D array. |
static int |
CUDA_VERSION
|
Method Summary | |
---|---|
static int |
align(int value,
int alignment)
Returns the given (address) value, adjusted to have the given alignment. |
static int |
cuArray3DCreate(CUarray pHandle,
CUDA_ARRAY3D_DESCRIPTOR pAllocateArray)
Creates a CUDA array. |
static int |
cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR pArrayDescriptor,
CUarray hArray)
Get a 3D CUDA array descriptor. |
static int |
cuArrayCreate(CUarray pHandle,
CUDA_ARRAY_DESCRIPTOR pAllocateArray)
Creates a 1D or 2D CUDA array. |
static int |
cuArrayDestroy(CUarray hArray)
Destroys a CUDA array. |
static int |
cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR pArrayDescriptor,
CUarray hArray)
Get a 1D or 2D CUDA array descriptor. |
static int |
cuCtxAttach(CUcontext pctx,
int flags)
Increment context usage-count. |
static int |
cuCtxCreate(CUcontext pctx,
int flags,
CUdevice dev)
Create a CUDA context. |
static int |
cuCtxDestroy(CUcontext ctx)
Destroy the current context context or a floating CuDA context. |
static int |
cuCtxDetach(CUcontext ctx)
Decrement a context’s usage-count. |
static int |
cuCtxGetDevice(CUdevice device)
Return device-ID for current context. |
static int |
cuCtxPopCurrent(CUcontext pctx)
Pops the current CUDA context from the current CPU thread. |
static int |
cuCtxPushCurrent(CUcontext ctx)
Attach floating context to CPU thread. |
static int |
cuCtxSynchronize()
Block for a context’s tasks to complete. |
static int |
cuDeviceComputeCapability(int[] major,
int[] minor,
CUdevice dev)
Returns the compute capability of the device. |
static int |
cuDeviceGet(CUdevice device,
int ordinal)
Returns a device-handle. |
static int |
cuDeviceGetAttribute(int[] pi,
int attrib,
CUdevice dev)
Returns information about the device. |
static int |
cuDeviceGetCount(int[] count)
Returns the number of compute-capable devices. |
static int |
cuDeviceGetName(byte[] name,
int len,
CUdevice dev)
Returns an identifier string. |
static int |
cuDeviceGetProperties(CUdevprop prop,
CUdevice dev)
Get device properties. |
static int |
cuDeviceTotalMem(int[] bytes,
CUdevice dev)
Returns the total amount of memory on the device. |
static int |
cuDriverGetVersion(int[] driverVersion)
Returns in driverVersion the version number of the installed CUDA driver. |
static int |
cuEventCreate(CUevent phEvent,
int Flags)
Creates an event. |
static int |
cuEventDestroy(CUevent hEvent)
Destroys an event. |
static int |
cuEventElapsedTime(float[] pMilliseconds,
CUevent hStart,
CUevent hEnd)
Computes the elapsed time between two events. |
static int |
cuEventQuery(CUevent hEvent)
Queries an event’s status. |
static int |
cuEventRecord(CUevent hEvent,
CUstream hStream)
Records an event. |
static int |
cuEventSynchronize(CUevent hEvent)
Waits for an event to complete. |
static int |
cuFuncGetAttribute(int[] pi,
int attrib,
CUfunction func)
Returns in pi the integer value of the attribute attrib on the kernel given by func. |
static int |
cuFuncSetBlockShape(CUfunction hfunc,
int x,
int y,
int z)
Sets the block-dimensions for the function. |
static int |
cuFuncSetCacheConfig(CUfunction hfunc,
int config)
Sets the preferred cache configuration for the device function hfunc. |
static int |
cuFuncSetSharedSize(CUfunction hfunc,
int bytes)
Sets the shared-memory size for the function. |
static int |
cuGLCtxCreate(CUcontext pCtx,
int Flags,
CUdevice device)
Create a CUDA context for interoperability with OpenGL. |
static int |
cuGLInit()
Deprecated. As of CUDA 3.0 |
static int |
cuGLMapBufferObject(CUdeviceptr dptr,
int[] size,
int bufferobj)
Deprecated. As of CUDA 3.0 |
static int |
cuGLMapBufferObjectAsync(CUdeviceptr dptr,
int[] size,
int buffer,
CUstream hStream)
Deprecated. As of CUDA 3.0 |
static int |
cuGLRegisterBufferObject(int bufferobj)
Deprecated. As of CUDA 3.0 |
static int |
cuGLSetBufferObjectMapFlags(int buffer,
int Flags)
Deprecated. As of CUDA 3.0 |
static int |
cuGLUnmapBufferObject(int bufferobj)
Deprecated. As of CUDA 3.0 |
static int |
cuGLUnmapBufferObjectAsync(int buffer,
CUstream hStream)
Deprecated. As of CUDA 3.0 |
static int |
cuGLUnregisterBufferObject(int bufferobj)
Deprecated. As of CUDA 3.0 |
static int |
cuGraphicsGLRegisterBuffer(CUgraphicsResource pCudaResource,
int buffer,
int Flags)
Registers the buffer object specified by buffer for access by CUDA. |
static int |
cuGraphicsGLRegisterImage(CUgraphicsResource pCudaResource,
int image,
int target,
int Flags)
Registers the texture or renderbuffer object specified by image for access by CUDA. |
static int |
cuGraphicsMapResources(int count,
CUgraphicsResource[] resources,
CUstream hStream)
Maps the count graphics resources in resources for access by CUDA. |
static int |
cuGraphicsResourceGetMappedPointer(CUdeviceptr pDevPtr,
int[] pSize,
CUgraphicsResource resource)
Returns in *pDevPtr a pointer through which the mapped graphics resource resource may be accessed. |
static int |
cuGraphicsResourceSetMapFlags(CUgraphicsResource resource,
int flags)
Set flags for mapping the graphics resource resource. |
static int |
cuGraphicsSubResourceGetMappedArray(CUarray pArray,
CUgraphicsResource resource,
int arrayIndex,
int mipLevel)
Returns in *pArray 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 |
cuGraphicsUnmapResources(int count,
CUgraphicsResource[] resources,
CUstream hStream)
Unmaps the count graphics resources in resources. |
static int |
cuGraphicsUnregisterResource(CUgraphicsResource resource)
Unregisters the graphics resource resource so it is not accessible by CUDA unless registered again. |
static int |
cuInit(int Flags)
Initialize the CUDA driver API. |
static int |
cuLaunch(CUfunction f)
Launches a CUDA function. |
static int |
cuLaunchGrid(CUfunction f,
int grid_width,
int grid_height)
Launches a CUDA function. |
static int |
cuLaunchGridAsync(CUfunction f,
int grid_width,
int grid_height,
CUstream hStream)
|
static int |
cuMemAlloc(CUdeviceptr dptr,
int bytesize)
Allocates device memory. |
static int |
cuMemAllocHost(Pointer pp,
int bytesize)
Allocates page-locked host memory. |
static int |
cuMemAllocPitch(CUdeviceptr dptr,
int[] pPitch,
int WidthInBytes,
int Height,
int ElementSizeBytes)
Allocates device memory. |
static int |
cuMemcpy2D(CUDA_MEMCPY2D pCopy)
Copies memory for 2D arrays. |
static int |
cuMemcpy2DAsync(CUDA_MEMCPY2D pCopy,
CUstream hStream)
Copies memory. |
static int |
cuMemcpy2DUnaligned(CUDA_MEMCPY2D pCopy)
|
static int |
cuMemcpy3D(CUDA_MEMCPY3D pCopy)
Copies memory for 3D arrays. |
static int |
cuMemcpy3DAsync(CUDA_MEMCPY3D pCopy,
CUstream hStream)
Copies memory. |
static int |
cuMemcpyAtoA(CUarray dstArray,
int dstIndex,
CUarray srcArray,
int srcIndex,
int ByteCount)
Copies memory from Array to Array. |
static int |
cuMemcpyAtoD(CUdeviceptr dstDevice,
CUarray hSrc,
int SrcIndex,
int ByteCount)
Copies memory from Array to Device. |
static int |
cuMemcpyAtoH(Pointer dstHost,
CUarray srcArray,
int srcIndex,
int ByteCount)
Copies memory from Array to Host. |
static int |
cuMemcpyAtoHAsync(Pointer dstHost,
CUarray srcArray,
int srcIndex,
int ByteCount,
CUstream hStream)
Copies memory. |
static int |
cuMemcpyDtoA(CUarray dstArray,
int dstIndex,
CUdeviceptr srcDevice,
int ByteCount)
Copies memory from Device to Array. |
static int |
cuMemcpyDtoD(CUdeviceptr dstDevice,
CUdeviceptr srcDevice,
int ByteCount)
Copies memory from Device to Device. |
static int |
cuMemcpyDtoDAsync(CUdeviceptr dstDevice,
CUdeviceptr srcDevice,
int ByteCount,
CUstream hStream)
Copies memory. |
static int |
cuMemcpyDtoH(Pointer dstHost,
CUdeviceptr srcDevice,
int ByteCount)
Copies memory from Device to Host. |
static int |
cuMemcpyDtoHAsync(Pointer dstHost,
CUdeviceptr srcDevice,
int ByteCount,
CUstream hStream)
Copies memory. |
static int |
cuMemcpyHtoA(CUarray dstArray,
int dstIndex,
Pointer pSrc,
int ByteCount)
Copies memory from Host to Array. |
static int |
cuMemcpyHtoAAsync(CUarray dstArray,
int dstIndex,
Pointer pSrc,
int ByteCount,
CUstream hStream)
Copies memory. |
static int |
cuMemcpyHtoD(CUdeviceptr dstDevice,
Pointer srcHost,
int ByteCount)
Copy memory from Host to Device. |
static int |
cuMemcpyHtoDAsync(CUdeviceptr dstDevice,
Pointer srcHost,
int ByteCount,
CUstream hStream)
Copies memory. |
static int |
cuMemFree(CUdeviceptr dptr)
Frees device memory. |
static int |
cuMemFreeHost(Pointer p)
Frees page-locked host memory. |
static int |
cuMemGetAddressRange(CUdeviceptr pbase,
int[] psize,
CUdeviceptr dptr)
Get information on memory allocations. |
static int |
cuMemGetInfo(int[] free,
int[] total)
Gets free and total memory. |
static int |
cuMemHostAlloc(Pointer pp,
long bytes,
int Flags)
Allocates bytes bytes of host memory that is page-locked and accessible to the device. |
static int |
cuMemHostGetDevicePointer(CUdeviceptr ret,
Pointer p,
int Flags)
Passes back the device pointer ret corresponding to the mapped, pinned host buffer p allocated by cuMemHostAlloc. |
static int |
cuMemHostGetFlags(int[] pFlags,
Pointer p)
Passes back the flags pFlags that were specified when allocating the pinned host buffer p allocated by cuMemHostAlloc. |
static int |
cuMemsetD16(CUdeviceptr dstDevice,
short us,
int N)
Initializes device memory. |
static int |
cuMemsetD2D16(CUdeviceptr dstDevice,
int dstPitch,
short us,
int Width,
int Height)
Initializes device memory. |
static int |
cuMemsetD2D32(CUdeviceptr dstDevice,
int dstPitch,
int ui,
int Width,
int Height)
Initializes device memory. |
static int |
cuMemsetD2D8(CUdeviceptr dstDevice,
int dstPitch,
char uc,
int Width,
int Height)
Initializes device memory. |
static int |
cuMemsetD32(CUdeviceptr dstDevice,
int ui,
int N)
Initializes device memory. |
static int |
cuMemsetD8(CUdeviceptr dstDevice,
char uc,
int N)
Initializes device memory. |
static int |
cuModuleGetFunction(CUfunction hfunc,
CUmodule hmod,
java.lang.String name)
Returns a function handle. |
static int |
cuModuleGetGlobal(CUdeviceptr dptr,
int[] bytes,
CUmodule hmod,
java.lang.String name)
Returns a global pointer from a module. |
static int |
cuModuleGetTexRef(CUtexref pTexRef,
CUmodule hmod,
java.lang.String name)
Gets a handle to a texture-reference. |
static int |
cuModuleLoad(CUmodule module,
java.lang.String fname)
Loads a compute module. |
static int |
cuModuleLoadData(CUmodule module,
byte[] image)
Loads a module’s data. |
static int |
cuModuleLoadDataEx(CUmodule phMod,
Pointer p,
int numOptions,
int[] options,
Pointer optionValues)
Takes a pointer p and loads the corresponding module phMod into the current context. |
static int |
cuModuleLoadFatBinary(CUmodule module,
byte[] fatCubin)
Loads a fat-binary object. |
static int |
cuModuleUnload(CUmodule hmod)
Unloads a module. |
static int |
cuParamSetf(CUfunction hfunc,
int offset,
float value)
Adds a floating-point parameter to the function’s argument list. |
static int |
cuParamSeti(CUfunction hfunc,
int offset,
int value)
Adds an integer parameter to the function’s argument list. |
static int |
cuParamSetSize(CUfunction hfunc,
int numbytes)
Sets the parameter-size for the function. |
static int |
cuParamSetTexRef(CUfunction hfunc,
int texunit,
CUtexref hTexRef)
Adds a texture-reference to the function’s argument list. |
static int |
cuParamSetv(CUfunction hfunc,
int offset,
Pointer ptr,
int numbytes)
Adds arbitrary data to the function’s argument list. |
static int |
cuStreamCreate(CUstream phStream,
int Flags)
Create a stream. |
static int |
cuStreamDestroy(CUstream hStream)
Destroys a stream. |
static int |
cuStreamQuery(CUstream hStream)
Determine status of a compute stream. |
static int |
cuStreamSynchronize(CUstream hStream)
Block until a stream’s tasks are completed. |
static int |
cuTexRefCreate(CUtexref pTexRef)
Creates a texture-reference. |
static int |
cuTexRefDestroy(CUtexref hTexRef)
Destroys a texture-reference. |
static int |
cuTexRefGetAddress(CUdeviceptr pdptr,
CUtexref hTexRef)
Gets the address associated with a texture-reference. |
static int |
cuTexRefGetAddressMode(int[] pam,
CUtexref hTexRef,
int dim)
Gets the addressing mode used by a texture-reference. |
static int |
cuTexRefGetArray(CUarray phArray,
CUtexref hTexRef)
Gets the array bound to a texture-reference. |
static int |
cuTexRefGetFilterMode(int[] pfm,
CUtexref hTexRef)
Gets the filter-mode used by a texture-reference. |
static int |
cuTexRefGetFlags(int[] pFlags,
CUtexref hTexRef)
Gets the flags used by a texture-reference. |
static int |
cuTexRefGetFormat(int[] pFormat,
int[] pNumChannels,
CUtexref hTexRef)
Gets the format used by a texture-reference. |
static int |
cuTexRefSetAddress(int[] ByteOffset,
CUtexref hTexRef,
CUdeviceptr dptr,
int bytes)
Binds an address as a texture-reference. |
static int |
cuTexRefSetAddress2D(CUtexref hTexRef,
CUDA_ARRAY_DESCRIPTOR desc,
CUdeviceptr dptr,
int PitchInBytes)
Binds a linear address range to the texture reference hTexRef. |
static int |
cuTexRefSetAddressMode(CUtexref hTexRef,
int dim,
int am)
Set the addressing mode for a texture-reference. |
static int |
cuTexRefSetArray(CUtexref hTexRef,
CUarray hArray,
int Flags)
Binds an array to a texture-reference. |
static int |
cuTexRefSetFilterMode(CUtexref hTexRef,
int fm)
Sets the mode for a texture-reference. |
static int |
cuTexRefSetFlags(CUtexref hTexRef,
int Flags)
Sets flags for a texture-reference. |
static int |
cuTexRefSetFormat(CUtexref hTexRef,
int fmt,
int NumPackedComponents)
Sets the format for a texture-reference. |
static void |
setExceptionsEnabled(boolean enabled)
Enables or disables exceptions. |
static void |
setLogLevel(LogLevel logLevel)
Set the specified log level for the JCuda driver library. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CUDA_VERSION
public static final int CU_MEMHOSTALLOC_PORTABLE
cuMemHostAlloc(jcuda.Pointer, long, int)
public static final int CU_MEMHOSTALLOC_DEVICEMAP
cuMemHostAlloc(jcuda.Pointer, long, int)
public static final int CU_MEMHOSTALLOC_WRITECOMBINED
cuMemHostAlloc(jcuda.Pointer, long, int)
public static final int CUDA_ARRAY3D_2DARRAY
public static final int CU_PARAM_TR_DEFAULT
public static final int CU_TRSA_OVERRIDE_FORMAT
public static final int CU_TRSF_READ_AS_INTEGER
public static final int CU_TRSF_NORMALIZED_COORDINATES
Method Detail |
---|
public static void setLogLevel(LogLevel logLevel)
logLevel
- The log level to use.public static void setExceptionsEnabled(boolean enabled)
enabled
- Whether exceptions are enabledpublic static int align(int value, int alignment)
value
- The address valuealignment
- The desired alignment
public static int cuInit(int Flags)
public static int cuDeviceGet(CUdevice device, int ordinal)
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDeviceGetCount(int[] count)
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDeviceGetName(byte[] name, int len, CUdevice dev)
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDeviceComputeCapability(int[] major, int[] minor, CUdevice dev)
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDeviceTotalMem(int[] bytes, CUdevice dev)
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
public static int cuDeviceGetProperties(CUdevprop prop, CUdevice dev)
typedef struct CUdevprop_st { int maxThreadsPerBlock; int maxThreadsDim[3]; int maxGridSize[3]; int sharedMemPerBlock; int totalConstantMemory; int SIMDWidth; int memPitch; int regsPerBlock; int clockRate; int textureAlign } CUdevprop;where: - 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; - sharedMemPerBlock is the total amount of shared memory available per block in bytes; - totalConstantMemory is the total amount of constant memory available on the device in bytes; - SIMDWidth is the warp size; - memPitch is the maximum pitch allowed by the memory copy functions that involve memory regions allocated through cuMemAllocPitch(); - regsPerBlock is the total number of registers available per block; - clockRate is the clock frequency in kilohertz; - textureAlign is the alignment requirement; texture base addresses that are aligned to textureAlign bytes do not need an offset applied to texture fetches.
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetAttribute(int[], int, jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDeviceGetAttribute(int[] pi, int attrib, CUdevice dev)
cuDeviceComputeCapability(int[], int[], jcuda.driver.CUdevice)
,
cuDeviceGetCount(int[])
,
cuDeviceGetName(byte[], int, jcuda.driver.CUdevice)
,
cuDeviceGet(jcuda.driver.CUdevice, int)
,
cuDeviceGetProperties(jcuda.driver.CUdevprop, jcuda.driver.CUdevice)
,
cuDeviceTotalMem(int[], jcuda.driver.CUdevice)
public static int cuDriverGetVersion(int[] driverVersion)
driverVersion
- - Returns the CUDA driver version
public static int cuCtxCreate(CUcontext pctx, int flags, CUdevice dev)
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxDestroy(jcuda.driver.CUcontext)
,
cuCtxPushCurrent(jcuda.driver.CUcontext)
,
cuCtxPopCurrent(jcuda.driver.CUcontext)
public static int cuCtxDestroy(CUcontext ctx)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxPushCurrent(jcuda.driver.CUcontext)
,
cuCtxPopCurrent(jcuda.driver.CUcontext)
public static int cuCtxAttach(CUcontext pctx, int flags)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxGetDevice(jcuda.driver.CUdevice)
,
cuCtxSynchronize()
public static int cuCtxDetach(CUcontext ctx)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDestroy(jcuda.driver.CUcontext)
,
cuCtxPushCurrent(jcuda.driver.CUcontext)
,
cuCtxPopCurrent(jcuda.driver.CUcontext)
public static int cuCtxPushCurrent(CUcontext ctx)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxDestroy(jcuda.driver.CUcontext)
,
cuCtxPopCurrent(jcuda.driver.CUcontext)
public static int cuCtxPopCurrent(CUcontext pctx)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxDestroy(jcuda.driver.CUcontext)
,
cuCtxPushCurrent(jcuda.driver.CUcontext)
public static int cuCtxGetDevice(CUdevice device)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxSynchronize()
public static int cuCtxSynchronize()
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuCtxAttach(jcuda.driver.CUcontext, int)
,
cuCtxDetach(jcuda.driver.CUcontext)
,
cuCtxGetDevice(jcuda.driver.CUdevice)
public static int cuModuleLoad(CUmodule module, java.lang.String fname)
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleLoadData(CUmodule module, byte[] image)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleLoadDataEx(CUmodule phMod, Pointer p, int numOptions, int[] options, Pointer optionValues)
phMod
- - Returned modulep
- - Module data to loadnumOptions
- - Number of optionsoptions
- - Options for JIToptionValues
- - Option values for JIT
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
public static int cuModuleLoadFatBinary(CUmodule module, byte[] fatCubin)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleUnload(CUmodule hmod)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleGetFunction(CUfunction hfunc, CUmodule hmod, java.lang.String name)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleGetGlobal(CUdeviceptr dptr, int[] bytes, CUmodule hmod, java.lang.String name)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetTexRef(jcuda.driver.CUtexref, jcuda.driver.CUmodule, java.lang.String)
public static int cuModuleGetTexRef(CUtexref pTexRef, CUmodule hmod, java.lang.String name)
cuModuleLoad(jcuda.driver.CUmodule, java.lang.String)
,
cuModuleLoadData(jcuda.driver.CUmodule, byte[])
,
cuModuleLoadFatBinary(jcuda.driver.CUmodule, byte[])
,
cuModuleUnload(jcuda.driver.CUmodule)
,
cuModuleGetFunction(jcuda.driver.CUfunction, jcuda.driver.CUmodule, java.lang.String)
,
cuModuleGetGlobal(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUmodule, java.lang.String)
public static int cuMemGetInfo(int[] free, int[] total)
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemHostAlloc(Pointer pp, long bytes, int Flags)
pp
- - Returned host pointer to page-locked memorybytes
- - Requested allocation size in bytesFlags
- - Flags for allocation request
cuArray3DCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR)
,
cuArray3DGetDescriptor(jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
,
cuMemcpy2DAsync(jcuda.driver.CUDA_MEMCPY2D, jcuda.driver.CUstream)
,
cuMemcpy2DUnaligned(jcuda.driver.CUDA_MEMCPY2D)
,
cuMemcpy3D(jcuda.driver.CUDA_MEMCPY3D)
,
cuMemcpy3DAsync(jcuda.driver.CUDA_MEMCPY3D, jcuda.driver.CUstream)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoHAsync(jcuda.Pointer, jcuda.driver.CUarray, int, int, jcuda.driver.CUstream)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoHAsync(jcuda.Pointer, jcuda.driver.CUdeviceptr, int, jcuda.driver.CUstream)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyHtoAAsync(jcuda.driver.CUarray, int, jcuda.Pointer, int, jcuda.driver.CUstream)
,
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyHtoDAsync(jcuda.driver.CUdeviceptr, jcuda.Pointer, int, jcuda.driver.CUstream)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuMemGetInfo(int[], int[])
,
cuMemHostGetDevicePointer(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
public static int cuMemHostGetDevicePointer(CUdeviceptr ret, Pointer p, int Flags)
ret
- - Returned device pointerp
- - Host pointerFlags
- - Options (must be 0)
cuArray3DCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR)
,
cuArray3DGetDescriptor(jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
,
cuMemcpy2DAsync(jcuda.driver.CUDA_MEMCPY2D, jcuda.driver.CUstream)
,
cuMemcpy2DUnaligned(jcuda.driver.CUDA_MEMCPY2D)
,
cuMemcpy3D(jcuda.driver.CUDA_MEMCPY3D)
,
cuMemcpy3DAsync(jcuda.driver.CUDA_MEMCPY3D, jcuda.driver.CUstream)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoHAsync(jcuda.Pointer, jcuda.driver.CUarray, int, int, jcuda.driver.CUstream)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoHAsync(jcuda.Pointer, jcuda.driver.CUdeviceptr, int, jcuda.driver.CUstream)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyHtoAAsync(jcuda.driver.CUarray, int, jcuda.Pointer, int, jcuda.driver.CUstream)
,
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyHtoDAsync(jcuda.driver.CUdeviceptr, jcuda.Pointer, int, jcuda.driver.CUstream)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuMemGetInfo(int[], int[])
,
cuMemHostAlloc(jcuda.Pointer, long, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
public static int cuMemHostGetFlags(int[] pFlags, Pointer p)
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemHostAlloc(jcuda.Pointer, long, int)
public static int cuMemAlloc(CUdeviceptr dptr, int bytesize)
cuMemGetInfo(int[], int[])
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemAllocPitch(CUdeviceptr dptr, int[] pPitch, int WidthInBytes, int Height, int ElementSizeBytes)
ElementSizeBytes
- Size of biggest r/w to be performed by kernels on this memory: 4, 8 or 16 bytes
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemFree(CUdeviceptr dptr)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemGetAddressRange(CUdeviceptr pbase, int[] psize, CUdeviceptr dptr)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemAllocHost(Pointer pp, int bytesize)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemFreeHost(Pointer p)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuMemcpyHtoD(CUdeviceptr dstDevice, Pointer srcHost, int ByteCount)
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyDtoH(Pointer dstHost, CUdeviceptr srcDevice, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyDtoA(CUarray dstArray, int dstIndex, CUdeviceptr srcDevice, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray hSrc, int SrcIndex, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyHtoA(CUarray dstArray, int dstIndex, Pointer pSrc, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyAtoH(Pointer dstHost, CUarray srcArray, int srcIndex, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpyAtoA(CUarray dstArray, int dstIndex, CUarray srcArray, int srcIndex, int ByteCount)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpy2D(CUDA_MEMCPY2D pCopy)
typedef struct CUDA_MEMCPY2D_st { unsigned int srcXInBytes, srcY; CUmemorytype srcMemoryType; const void *srcHost; CUdeviceptr srcDevice; CUarray srcArray; unsigned int srcPitch; unsigned int dstXInBytes, dstY; CUmemorytype dstMemoryType; void *dstHost; CUdeviceptr dstDevice; CUarray dstArray; unsigned int dstPitch; unsigned int WidthInBytes; unsigned int Height; } CUDA_MEMCPY2D;where: - srcMemoryType and dstMemoryType specify the type of memory of the source and destination, respectively; CUmemorytype_enum is defined as such:
typedef enum CUmemorytype_enum { CU_MEMORYTYPE_HOST = 0x01, CU_MEMORYTYPE_DEVICE = 0x02, CU_MEMORYTYPE_ARRAY = 0x03 } CUmemorytype;If srcMemoryType is CU_MEMORYTYPE_HOST, srcHost and srcPitch specify the (host) base address of the source data and the bytes per row to apply. srcArray is ignored.
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy3D(jcuda.driver.CUDA_MEMCPY3D)
,
cuMemcpy3DAsync(jcuda.driver.CUDA_MEMCPY3D, jcuda.driver.CUstream)
public static int cuMemcpy2DUnaligned(CUDA_MEMCPY2D pCopy)
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpy3D(CUDA_MEMCPY3D pCopy)
typedef struct CUDA_MEMCPY3D_st { unsigned int srcXInBytes, srcY, srcZ; unsigned int srcLOD; CUmemorytype srcMemoryType; const void *srcHost; CUdeviceptr srcDevice; CUarray srcArray; unsigned int srcPitch; // ignored when src is array unsigned int srcHeight; // ignored when src is array; may be 0 if Depth==1 unsigned int dstXInBytes, dstY, dstZ; unsigned int dstLOD; CUmemorytype dstMemoryType; void *dstHost; CUdeviceptr dstDevice; CUarray dstArray; unsigned int dstPitch; // ignored when dst is array unsigned int dstHeight; // ignored when dst is array; may be 0 if Depth==1 unsigned int WidthInBytes; unsigned int Height; unsigned int Depth; } CUDA_MEMCPY3D;CUresult CUDAAPI cuMemcpy3D( const CUDA_MEMCPY3D *pCopy ); where: - srcMemoryType and dstMemoryType specify the type of memory of the source and destination, respectively; CUmemorytype_enum is defined as such:
typedef enum CUmemorytype_enum { CU_MEMORYTYPE_HOST = 0x01, CU_MEMORYTYPE_DEVICE = 0x02, CU_MEMORYTYPE_ARRAY = 0x03 } CUmemorytype;If srcMemoryType is CU_MEMORYTYPE_HOST, srcHost, srcPitch and srcHeight specify the (host) base address of the source data, the bytes per row, and the height of each 2D slice of the 3D array. srcArray is ignored.
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
,
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyDtoA(jcuda.driver.CUarray, int, jcuda.driver.CUdeviceptr, int)
,
cuMemcpyAtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUarray, int, int)
,
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
,
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
,
cuMemcpyAtoA(jcuda.driver.CUarray, int, jcuda.driver.CUarray, int, int)
,
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
,
cuMemcpy2DAsync(jcuda.driver.CUDA_MEMCPY2D, jcuda.driver.CUstream)
public static int cuMemcpyHtoDAsync(CUdeviceptr dstDevice, Pointer srcHost, int ByteCount, CUstream hStream)
cuMemcpyHtoD(jcuda.driver.CUdeviceptr, jcuda.Pointer, int)
public static int cuMemcpyDtoHAsync(Pointer dstHost, CUdeviceptr srcDevice, int ByteCount, CUstream hStream)
cuMemcpyDtoH(jcuda.Pointer, jcuda.driver.CUdeviceptr, int)
public static int cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, int ByteCount, CUstream hStream)
cuMemcpyDtoD(jcuda.driver.CUdeviceptr, jcuda.driver.CUdeviceptr, int)
public static int cuMemcpyHtoAAsync(CUarray dstArray, int dstIndex, Pointer pSrc, int ByteCount, CUstream hStream)
cuMemcpyHtoA(jcuda.driver.CUarray, int, jcuda.Pointer, int)
public static int cuMemcpyAtoHAsync(Pointer dstHost, CUarray srcArray, int srcIndex, int ByteCount, CUstream hStream)
cuMemcpyAtoH(jcuda.Pointer, jcuda.driver.CUarray, int, int)
public static int cuMemcpy2DAsync(CUDA_MEMCPY2D pCopy, CUstream hStream)
cuMemcpy2D(jcuda.driver.CUDA_MEMCPY2D)
public static int cuMemcpy3DAsync(CUDA_MEMCPY3D pCopy, CUstream hStream)
cuMemcpy3D(jcuda.driver.CUDA_MEMCPY3D)
public static int cuMemsetD8(CUdeviceptr dstDevice, char uc, int N)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
public static int cuMemsetD16(CUdeviceptr dstDevice, short us, int N)
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
public static int cuMemsetD32(CUdeviceptr dstDevice, int ui, int N)
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
public static int cuMemsetD2D8(CUdeviceptr dstDevice, int dstPitch, char uc, int Width, int Height)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
public static int cuMemsetD2D16(CUdeviceptr dstDevice, int dstPitch, short us, int Width, int Height)
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
public static int cuMemsetD2D32(CUdeviceptr dstDevice, int dstPitch, int ui, int Width, int Height)
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
public static int cuFuncGetAttribute(int[] pi, int attrib, CUfunction func)
pi
- - Returned attribute valueattrib
- - Attribute requestedfunc
- - Function to query attribute of
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
,
cuLaunchGridAsync(jcuda.driver.CUfunction, int, int, jcuda.driver.CUstream)
public static int cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z)
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuFuncSetSharedSize(CUfunction hfunc, int bytes)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuFuncSetCacheConfig(CUfunction hfunc, int config)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncGetAttribute(int[], int, jcuda.driver.CUfunction)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
,
cuLaunchGridAsync(jcuda.driver.CUfunction, int, int, jcuda.driver.CUstream)
public static int cuArrayCreate(CUarray pHandle, CUDA_ARRAY_DESCRIPTOR pAllocateArray)
typedef struct { unsigned int Width; unsigned int Height; CUarray_format Format; unsigned int NumChannels; } CUDA_ARRAY_DESCRIPTOR;where: - Width and Height are the width and height of the CUDA array (in elements); the CUDA array is one-dimensional if height is 0, two-dimensional, otherwise; - NumChannels specifies the number of packed components per CUDA array element.; it may be 1, 2 or 4; - Format specifies the format of the elements; CUarray_format is defined as such:
typedef enum CUarray_format_enum { CU_AD_FORMAT_UNSIGNED_INT8 = 0x01, CU_AD_FORMAT_UNSIGNED_INT16 = 0x02, CU_AD_FORMAT_UNSIGNED_INT32 = 0x03, CU_AD_FORMAT_SIGNED_INT8 = 0x08, CU_AD_FORMAT_SIGNED_INT16 = 0x09, CU_AD_FORMAT_SIGNED_INT32 = 0x0a, CU_AD_FORMAT_HALF = 0x10, CU_AD_FORMAT_FLOAT = 0x20 } CUarray_format;Here are examples of CUDA array descriptions: - Description for a CUDA array of 2048 floats:
CUDA_ARRAY_DESCRIPTOR desc; desc.Format = CU_AD_FORMAT_FLOAT; desc.NumChannels = 1; desc.Width = 2048; desc.Height = 1;- Description for a 64 x 64 CUDA array of floats:
CUDA_ARRAY_DESCRIPTOR desc; desc.Format = CU_AD_FORMAT_FLOAT; desc.NumChannels = 1; desc.Width = 64; desc.Height = 64;- Description for a width x height CUDA array of 64-bit, 4x16-bit float16’s:
CUDA_ARRAY_DESCRIPTOR desc; desc.FormatFlags = CU_AD_FORMAT_HALF; desc.NumChannels = 4; desc.Width = width; desc.Height = height;- Description for a width x height CUDA array of 16-bit elements, each of which is two 8-bit unsigned chars:
CUDA_ARRAY_DESCRIPTOR arrayDesc; desc.FormatFlags = CU_AD_FORMAT_UNSIGNED_INTS; desc.NumChannels = 2; desc.Width = width; desc.Height = height;
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR pArrayDescriptor, CUarray hArray)
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArray3DCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR)
,
cuArray3DGetDescriptor(jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
public static int cuArrayDestroy(CUarray hArray)
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuMemsetD8(jcuda.driver.CUdeviceptr, char, int)
,
cuMemsetD16(jcuda.driver.CUdeviceptr, short, int)
,
cuMemsetD32(jcuda.driver.CUdeviceptr, int, int)
,
cuMemsetD2D8(jcuda.driver.CUdeviceptr, int, char, int, int)
,
cuMemsetD2D16(jcuda.driver.CUdeviceptr, int, short, int, int)
,
cuMemsetD2D32(jcuda.driver.CUdeviceptr, int, int, int, int)
public static int cuArray3DCreate(CUarray pHandle, CUDA_ARRAY3D_DESCRIPTOR pAllocateArray)
typedef struct { unsigned int Width; unsigned int Height; unsigned int Depth; CUarray_format Format; unsigned int NumChannels; unsigned int Flags; } CUDA_ARRAY3D_DESCRIPTOR;where: - Width, Height and Depth are the width, height and depth of the CUDA array (in elements); the CUDA array is one-dimensional if height and depth are 0, two-dimensional if depth is 0, and three- dimensional otherwise; - NumChannels specifies the number of packed components per CUDA array element.; it may be 1, 2 or 4; - Format specifies the format of the elements; CUarray_format is defined as such:
typedef enum CUarray_format_enum { CU_AD_FORMAT_UNSIGNED_INT8 = 0x01, CU_AD_FORMAT_UNSIGNED_INT16 = 0x02, CU_AD_FORMAT_UNSIGNED_INT32 = 0x03, CU_AD_FORMAT_SIGNED_INT8 = 0x08, CU_AD_FORMAT_SIGNED_INT16 = 0x09, CU_AD_FORMAT_SIGNED_INT32 = 0x0a, CU_AD_FORMAT_HALF = 0x10, CU_AD_FORMAT_FLOAT = 0x20 } CUarray_format;- Flags provides for future features. For now, it must be set to 0. Here are examples of CUDA array descriptions: - Description for a CUDA array of 2048 floats:
CUDA_ARRAY3D_DESCRIPTOR desc; desc.Format = CU_AD_FORMAT_FLOAT; desc.NumChannels = 1; desc.Width = 2048; desc.Height = 0; desc.Depth = 0;- Description for a 64 x 64 CUDA array of floats:
CUDA_ARRAY3D_DESCRIPTOR desc; desc.Format = CU_AD_FORMAT_FLOAT; desc.NumChannels = 1; desc.Width = 64; desc.Height = 64; desc.Depth = 0;- Description for a width x height x depth CUDA array of 64-bit, 4x16-bit float16’s:
CUDA_ARRAY_DESCRIPTOR desc; desc.FormatFlags = CU_AD_FORMAT_HALF; desc.NumChannels = 4; desc.Width = width; desc.Height = height; desc.Depth = depth;
cuMemGetInfo(int[], int[])
,
cuMemAlloc(jcuda.driver.CUdeviceptr, int)
,
cuMemAllocPitch(jcuda.driver.CUdeviceptr, int[], int, int, int)
,
cuMemFree(jcuda.driver.CUdeviceptr)
,
cuMemAllocHost(jcuda.Pointer, int)
,
cuMemFreeHost(jcuda.Pointer)
,
cuMemGetAddressRange(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUdeviceptr)
,
cuArray3DGetDescriptor(jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
public static int cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR pArrayDescriptor, CUarray hArray)
cuArrayCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY_DESCRIPTOR)
,
cuArray3DCreate(jcuda.driver.CUarray, jcuda.driver.CUDA_ARRAY3D_DESCRIPTOR)
,
cuArrayGetDescriptor(jcuda.driver.CUDA_ARRAY_DESCRIPTOR, jcuda.driver.CUarray)
,
cuArrayDestroy(jcuda.driver.CUarray)
public static int cuTexRefCreate(CUtexref pTexRef)
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefDestroy(CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, int Flags)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetAddress(int[] ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, int bytes)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetFormat(CUtexref hTexRef, int fmt, int NumPackedComponents)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetAddress2D(CUtexref hTexRef, CUDA_ARRAY_DESCRIPTOR desc, CUdeviceptr dptr, int PitchInBytes)
hTexRef
- - Texture reference to binddesc
- - Descriptor of CUDA arraydptr
- - Device pointer to bindPitchInBytes
- - Line pitch in bytes
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
public static int cuTexRefSetAddressMode(CUtexref hTexRef, int dim, int am)
typedef enum CUaddress_mode_enum { CU_TR_ADDRESS_MODE_WRAP = 0, CU_TR_ADDRESS_MODE_CLAMP = 1, CU_TR_ADDRESS_MODE_MIRROR = 2, } CUaddress_mode;Note that this call has no effect if texRef is bound to linear memory.
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetFilterMode(CUtexref hTexRef, int fm)
typedef enum CUfilter_mode_enum { CU_TR_FILTER_MODE_POINT = 0, CU_TR_FILTER_MODE_LINEAR = 1 } CUfilter_mode;Note that this call has no effect if texRef is bound to linear memory.
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefSetFlags(CUtexref hTexRef, int Flags)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetAddress(CUdeviceptr pdptr, CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetArray(CUarray phArray, CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetAddressMode(int[] pam, CUtexref hTexRef, int dim)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetFilterMode(int[] pfm, CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetFormat(int[] pFormat, int[] pNumChannels, CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFlags(int[], jcuda.driver.CUtexref)
public static int cuTexRefGetFlags(int[] pFlags, CUtexref hTexRef)
cuTexRefCreate(jcuda.driver.CUtexref)
,
cuTexRefDestroy(jcuda.driver.CUtexref)
,
cuTexRefSetArray(jcuda.driver.CUtexref, jcuda.driver.CUarray, int)
,
cuTexRefSetAddress(int[], jcuda.driver.CUtexref, jcuda.driver.CUdeviceptr, int)
,
cuTexRefSetFormat(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetAddressMode(jcuda.driver.CUtexref, int, int)
,
cuTexRefSetFilterMode(jcuda.driver.CUtexref, int)
,
cuTexRefSetFlags(jcuda.driver.CUtexref, int)
,
cuTexRefGetAddress(jcuda.driver.CUdeviceptr, jcuda.driver.CUtexref)
,
cuTexRefGetArray(jcuda.driver.CUarray, jcuda.driver.CUtexref)
,
cuTexRefGetAddressMode(int[], jcuda.driver.CUtexref, int)
,
cuTexRefGetFilterMode(int[], jcuda.driver.CUtexref)
,
cuTexRefGetFormat(int[], int[], jcuda.driver.CUtexref)
public static int cuParamSetSize(CUfunction hfunc, int numbytes)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuParamSeti(CUfunction hfunc, int offset, int value)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuParamSetf(CUfunction hfunc, int offset, float value)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuParamSetv(CUfunction hfunc, int offset, Pointer ptr, int numbytes)
CUdeviceptr d_in = new CUdeviceptr(); JCudaDriver.cuMemAlloc(d_in, n); JCudaDriver.cuParamSetv(hfunc, offset, d_in, Sizeof.POINTER);
short value = 0; JCudaDriver.cuParamSetv(hfunc, offset, Pointer.to(new short[]{value}), Sizeof.SHORT);
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuLaunch(jcuda.driver.CUfunction)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuLaunch(CUfunction f)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuLaunchGrid(CUfunction f, int grid_width, int grid_height)
cuFuncSetBlockShape(jcuda.driver.CUfunction, int, int, int)
,
cuFuncSetSharedSize(jcuda.driver.CUfunction, int)
,
cuParamSetSize(jcuda.driver.CUfunction, int)
,
cuParamSeti(jcuda.driver.CUfunction, int, int)
,
cuParamSetf(jcuda.driver.CUfunction, int, float)
,
cuParamSetv(jcuda.driver.CUfunction, int, jcuda.Pointer, int)
,
cuParamSetTexRef(jcuda.driver.CUfunction, int, jcuda.driver.CUtexref)
,
cuLaunch(jcuda.driver.CUfunction)
public static int cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream)
cuLaunchGrid(jcuda.driver.CUfunction, int, int)
public static int cuEventCreate(CUevent phEvent, int Flags)
cuEventRecord(jcuda.driver.CUevent, jcuda.driver.CUstream)
,
cuEventQuery(jcuda.driver.CUevent)
,
cuEventSynchronize(jcuda.driver.CUevent)
,
cuEventDestroy(jcuda.driver.CUevent)
,
cuEventElapsedTime(float[], jcuda.driver.CUevent, jcuda.driver.CUevent)
public static int cuEventRecord(CUevent hEvent, CUstream hStream)
cuEventCreate(jcuda.driver.CUevent, int)
,
cuEventQuery(jcuda.driver.CUevent)
,
cuEventSynchronize(jcuda.driver.CUevent)
,
cuEventDestroy(jcuda.driver.CUevent)
,
cuEventElapsedTime(float[], jcuda.driver.CUevent, jcuda.driver.CUevent)
public static int cuEventQuery(CUevent hEvent)
cuEventCreate(jcuda.driver.CUevent, int)
,
cuEventRecord(jcuda.driver.CUevent, jcuda.driver.CUstream)
,
cuEventSynchronize(jcuda.driver.CUevent)
,
cuEventDestroy(jcuda.driver.CUevent)
,
cuEventElapsedTime(float[], jcuda.driver.CUevent, jcuda.driver.CUevent)
public static int cuEventSynchronize(CUevent hEvent)
cuEventCreate(jcuda.driver.CUevent, int)
,
cuEventRecord(jcuda.driver.CUevent, jcuda.driver.CUstream)
,
cuEventQuery(jcuda.driver.CUevent)
,
cuEventDestroy(jcuda.driver.CUevent)
,
cuEventElapsedTime(float[], jcuda.driver.CUevent, jcuda.driver.CUevent)
public static int cuEventDestroy(CUevent hEvent)
cuEventCreate(jcuda.driver.CUevent, int)
,
cuEventRecord(jcuda.driver.CUevent, jcuda.driver.CUstream)
,
cuEventQuery(jcuda.driver.CUevent)
,
cuEventSynchronize(jcuda.driver.CUevent)
,
cuEventElapsedTime(float[], jcuda.driver.CUevent, jcuda.driver.CUevent)
public static int cuEventElapsedTime(float[] pMilliseconds, CUevent hStart, CUevent hEnd)
cuEventCreate(jcuda.driver.CUevent, int)
,
cuEventRecord(jcuda.driver.CUevent, jcuda.driver.CUstream)
,
cuEventQuery(jcuda.driver.CUevent)
,
cuEventSynchronize(jcuda.driver.CUevent)
,
cuEventDestroy(jcuda.driver.CUevent)
public static int cuStreamCreate(CUstream phStream, int Flags)
cuStreamQuery(jcuda.driver.CUstream)
,
cuStreamSynchronize(jcuda.driver.CUstream)
,
cuStreamDestroy(jcuda.driver.CUstream)
public static int cuStreamQuery(CUstream hStream)
cuStreamCreate(jcuda.driver.CUstream, int)
,
cuStreamSynchronize(jcuda.driver.CUstream)
,
cuStreamDestroy(jcuda.driver.CUstream)
public static int cuStreamSynchronize(CUstream hStream)
cuStreamCreate(jcuda.driver.CUstream, int)
,
cuStreamQuery(jcuda.driver.CUstream)
,
cuStreamDestroy(jcuda.driver.CUstream)
public static int cuStreamDestroy(CUstream hStream)
cuStreamCreate(jcuda.driver.CUstream, int)
,
cuStreamQuery(jcuda.driver.CUstream)
,
cuStreamSynchronize(jcuda.driver.CUstream)
public static int cuGLInit()
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLRegisterBufferObject(int)
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLUnmapBufferObject(int)
,
cuGLUnregisterBufferObject(int)
public static int cuGLCtxCreate(CUcontext pCtx, int Flags, CUdevice device)
cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLRegisterBufferObject(int)
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLUnmapBufferObject(int)
,
cuGLUnregisterBufferObject(int)
public static int cuGraphicsGLRegisterBuffer(CUgraphicsResource pCudaResource, int buffer, int Flags)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGraphicsUnregisterResource(jcuda.driver.CUgraphicsResource)
,
cuGraphicsMapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
,
cuGraphicsResourceGetMappedPointer(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUgraphicsResource)
public static int cuGraphicsGLRegisterImage(CUgraphicsResource pCudaResource, int image, int target, int Flags)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGraphicsUnregisterResource(jcuda.driver.CUgraphicsResource)
,
cuGraphicsMapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
,
cuGraphicsSubResourceGetMappedArray(jcuda.driver.CUarray, jcuda.driver.CUgraphicsResource, int, int)
public static int cuGLRegisterBufferObject(int bufferobj)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLUnmapBufferObject(int)
,
cuGLUnregisterBufferObject(int)
public static int cuGLMapBufferObject(CUdeviceptr dptr, int[] size, int bufferobj)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLRegisterBufferObject(int)
,
cuGLUnmapBufferObject(int)
,
cuGLUnregisterBufferObject(int)
public static int cuGLUnmapBufferObject(int bufferobj)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLRegisterBufferObject(int)
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLUnregisterBufferObject(int)
public static int cuGLUnregisterBufferObject(int bufferobj)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLRegisterBufferObject(int)
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLUnmapBufferObject(int)
public static int cuGLSetBufferObjectMapFlags(int buffer, int Flags)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLRegisterBufferObject(int)
,
cuGLUnregisterBufferObject(int)
,
cuGLUnmapBufferObject(int)
,
cuGLMapBufferObjectAsync(jcuda.driver.CUdeviceptr, int[], int, jcuda.driver.CUstream)
,
cuGLUnmapBufferObjectAsync(int, jcuda.driver.CUstream)
public static int cuGLMapBufferObjectAsync(CUdeviceptr dptr, int[] size, int buffer, CUstream hStream)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLRegisterBufferObject(int)
,
cuGLUnmapBufferObject(int)
,
cuGLUnregisterBufferObject(int)
,
cuGLUnmapBufferObjectAsync(int, jcuda.driver.CUstream)
,
cuGLSetBufferObjectMapFlags(int, int)
public static int cuGLUnmapBufferObjectAsync(int buffer, CUstream hStream)
cuGLCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)
,
cuGLInit()
,
cuGLMapBufferObject(jcuda.driver.CUdeviceptr, int[], int)
,
cuGLRegisterBufferObject(int)
,
cuGLUnregisterBufferObject(int)
,
cuGLMapBufferObjectAsync(jcuda.driver.CUdeviceptr, int[], int, jcuda.driver.CUstream)
,
cuGLSetBufferObjectMapFlags(int, int)
public static int cuGraphicsUnregisterResource(CUgraphicsResource resource)
cuGraphicsGLRegisterBuffer(jcuda.driver.CUgraphicsResource, int, int)
,
cuGraphicsGLRegisterImage(jcuda.driver.CUgraphicsResource, int, int, int)
public static int cuGraphicsSubResourceGetMappedArray(CUarray pArray, CUgraphicsResource resource, int arrayIndex, int mipLevel)
cuGraphicsResourceGetMappedPointer(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUgraphicsResource)
public static int cuGraphicsResourceGetMappedPointer(CUdeviceptr pDevPtr, int[] pSize, CUgraphicsResource resource)
cuGraphicsMapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
,
cuGraphicsSubResourceGetMappedArray(jcuda.driver.CUarray, jcuda.driver.CUgraphicsResource, int, int)
public static int cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, int flags)
cuGraphicsMapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
public static int cuGraphicsMapResources(int count, CUgraphicsResource[] resources, CUstream hStream)
cuGraphicsResourceGetMappedPointer(jcuda.driver.CUdeviceptr, int[], jcuda.driver.CUgraphicsResource)
,
cuGraphicsSubResourceGetMappedArray(jcuda.driver.CUarray, jcuda.driver.CUgraphicsResource, int, int)
,
cuGraphicsUnmapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
public static int cuGraphicsUnmapResources(int count, CUgraphicsResource[] resources, CUstream hStream)
cuGraphicsMapResources(int, jcuda.driver.CUgraphicsResource[], jcuda.driver.CUstream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |