Package | Description |
---|---|
jcuda.driver |
Contains the classes related to the JCuda driver API.
|
Modifier and Type | Field and Description |
---|---|
CUfunction |
CUDA_KERNEL_NODE_PARAMS.func
Kernel to launch
|
CUfunction |
CUDA_LAUNCH_PARAMS.function
Kernel to launch
|
Modifier and Type | Method and Description |
---|---|
static int |
JCudaDriver.cuFuncGetAttribute(int[] pi,
int attrib,
CUfunction func)
Returns information about a function.
|
static int |
JCudaDriver.cuFuncGetModule(CUmodule hmod,
CUfunction hfunc)
Returns a module handle
Returns in *hmod the handle of the module that function hfunc
is located in.
|
static int |
JCudaDriver.cuFuncSetAttribute(CUfunction hfunc,
int attrib,
int value)
Sets information about a function.
|
static int |
JCudaDriver.cuFuncSetBlockShape(CUfunction hfunc,
int x,
int y,
int z)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuFuncSetCacheConfig(CUfunction hfunc,
int config)
Sets the preferred cache configuration for a device function.
|
static int |
JCudaDriver.cuFuncSetSharedMemConfig(CUfunction hfunc,
int config)
Sets the shared memory configuration for a device function.
|
static int |
JCudaDriver.cuFuncSetSharedSize(CUfunction hfunc,
int bytes)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuLaunch(CUfunction f)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuLaunchCooperativeKernel(CUfunction f,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
CUstream hStream,
Pointer kernelParams)
Launches a CUDA function where thread blocks can cooperate and synchronize as they execute.
|
static int |
JCudaDriver.cuLaunchGrid(CUfunction f,
int grid_width,
int grid_height)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuLaunchGridAsync(CUfunction f,
int grid_width,
int grid_height,
CUstream hStream)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuLaunchKernel(CUfunction f,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
CUstream hStream,
Pointer kernelParams,
Pointer extra)
Launches a CUDA function.
|
static int |
JCudaDriver.cuModuleGetFunction(CUfunction hfunc,
CUmodule hmod,
String name)
Returns a function handle.
|
static int |
JCudaDriver.cuOccupancyAvailableDynamicSMemPerBlock(long[] dynamicSmemSize,
CUfunction func,
int numBlocks,
int blockSize)
\brief Returns dynamic shared memory available per block when launching \p numBlocks blocks on SM
Returns in \p *dynamicSmemSize the maximum size of dynamic shared memory to allow \p numBlocks blocks per SM. |
static int |
JCudaDriver.cuOccupancyMaxActiveBlocksPerMultiprocessor(int[] numBlocks,
CUfunction func,
int blockSize,
long dynamicSMemSize)
\brief Returns occupancy of a function
Returns in \p *numBlocks the number of the maximum active blocks per
streaming multiprocessor. |
static int |
JCudaDriver.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int[] numBlocks,
CUfunction func,
int blockSize,
long dynamicSMemSize,
int flags)
\brief Suggest a launch configuration with reasonable occupancy
An extended version of ::cuOccupancyMaxPotentialBlockSize. |
static int |
JCudaDriver.cuOccupancyMaxPotentialBlockSize(int[] minGridSize,
int[] blockSize,
CUfunction func,
CUoccupancyB2DSize blockSizeToDynamicSMemSize,
long dynamicSMemSize,
int blockSizeLimit)
\brief Suggest a launch configuration with reasonable occupancy
Returns in \p *blockSize a reasonable block size that can achieve
the maximum occupancy (or, the maximum number of active warps with
the fewest blocks per multiprocessor), and in \p *minGridSize the
minimum grid size to achieve the maximum occupancy. |
static int |
JCudaDriver.cuOccupancyMaxPotentialBlockSizeWithFlags(int[] minGridSize,
int[] blockSize,
CUfunction func,
CUoccupancyB2DSize blockSizeToDynamicSMemSize,
long dynamicSMemSize,
int blockSizeLimit,
int flags) |
static int |
JCudaDriver.cuParamSetf(CUfunction hfunc,
int offset,
float value)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuParamSeti(CUfunction hfunc,
int offset,
int value)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuParamSetSize(CUfunction hfunc,
int numbytes)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuParamSetTexRef(CUfunction hfunc,
int texunit,
CUtexref hTexRef)
Deprecated.
Deprecated in CUDA
|
static int |
JCudaDriver.cuParamSetv(CUfunction hfunc,
int offset,
Pointer ptr,
int numbytes)
Deprecated.
Deprecated in CUDA
|
Copyright © 2020. All rights reserved.