Skip to main content

cudaDeviceGetTexture1DLinearMaxWidth

Function cudaDeviceGetTexture1DLinearMaxWidth 

Source
pub unsafe extern "C" fn cudaDeviceGetTexture1DLinearMaxWidth(
    maxWidthInElements: *mut size_t,
    fmtDesc: *const cudaChannelFormatDesc,
    device: c_int,
) -> cudaError_t
Expand description

Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.

Returns in maxWidthInElements the maximum number of elements allocatable in a 1D linear texture for given format descriptor fmtDesc.

Note that this function may also return error codes from previous, asynchronous launches.

Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.

Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.

§Parameters

  • maxWidthInElements: Returns maximum number of texture elements allocatable for given fmtDesc.
  • fmtDesc: Texture format description.

§Return value

See also: cuDeviceGetTexture1DLinearMaxWidth.