7.26. CUDA_KERNEL_NODE_PARAMS_v3

Defined in /dvs/p4/build/sw/gpgpu/bin/x86_64_Linux_release/stub/cuda.h

struct CUDA_KERNEL_NODE_PARAMS_v3

GPU kernel node parameters.

Public Members

CUfunction func

Kernel to launch.

unsigned int gridDimX

Width of grid in blocks.

unsigned int gridDimY

Height of grid in blocks.

unsigned int gridDimZ

Depth of grid in blocks.

unsigned int blockDimX

X dimension of each thread block.

unsigned int blockDimY

Y dimension of each thread block.

unsigned int blockDimZ

Z dimension of each thread block.

unsigned int sharedMemBytes

Dynamic shared-memory size per thread block in bytes.

void **kernelParams

Array of pointers to kernel parameters.

void **extra

Extra options.

CUkernel kern

Kernel to launch, will only be referenced if func is NULL.

CUcontext ctx

Context for the kernel task to run in.

The value NULL will indicate the current context should be used by the api. This field is ignored if func is set.

CUlaunchAttribute *attrs

List of attributes; nullable if CUDA_KERNEL_NODE_PARAMS_v3::numAttrs == 0.

If the only attribute(s) in the array is(are) CU_LAUNCH_ATTRIBUTE_IGNORE, the node’s current attributes will be cleared. If CUDA_KERNEL_NODE_PARAMS_v3::numAttrs == 0, the node’s current attributes are unchanged.

unsigned int numAttrs

Number of attributes populated in CUDA_KERNEL_NODE_PARAMS_v3::attrs.