pub unsafe extern "C" fn cuTensorMapEncodeIm2col(
tensorMap: *mut CUtensorMap,
tensorDataType: CUtensorMapDataType,
tensorRank: cuuint32_t,
globalAddress: *mut c_void,
globalDim: *const cuuint64_t,
globalStrides: *const cuuint64_t,
pixelBoxLowerCorner: *const c_int,
pixelBoxUpperCorner: *const c_int,
channelsPerPixel: cuuint32_t,
pixelsPerColumn: cuuint32_t,
elementStrides: *const cuuint32_t,
interleave: CUtensorMapInterleave,
swizzle: CUtensorMapSwizzle,
l2Promotion: CUtensorMapL2promotion,
oobFill: CUtensorMapFloatOOBfill,
) -> CUresultExpand description
Create a tensor map descriptor object representing im2col memory region.
Creates a descriptor for Tensor Memory Access (TMA) object specified by the parameters describing a im2col memory layout and returns it in tensorMap.
Tensor map objects are only supported on devices of compute capability 9.0 or higher. Additionally, a tensor map object is an opaque value, and, as such, should only be accessed through CUDA APIs and PTX.
The parameters passed are bound to the following requirements.
ยงParameters
tensorMap: Tensor map object to create.tensorDataType: Tensor data type.tensorRank: Dimensionality of tensor; must be at least 3.globalAddress: Starting address of memory region described by tensor.globalDim: Array containing tensor size (number of elements) along each of thetensorRankdimensions.globalStrides: Array containing stride size (in bytes) along each of thetensorRank- 1 dimensions.pixelBoxLowerCorner: Array containing DHW dimensions of lower box corner.pixelBoxUpperCorner: Array containing DHW dimensions of upper box corner.channelsPerPixel: Number of channels per pixel.pixelsPerColumn: Number of pixels per column.elementStrides: Array containing traversal stride in each of thetensorRankdimensions.interleave: Type of interleaved layout the tensor addresses.swizzle: Bank swizzling pattern inside shared memory.l2Promotion: L2 promotion size.oobFill: Indicate whether zero or special NaN constant will be used to fill out-of-bound elements.