Function cuCtxGetLimit

Source
pub unsafe extern "C" fn cuCtxGetLimit(
    pvalue: *mut usize,
    limit: CUlimit,
) -> CUresult
Expand description

\brief Returns resource limits

Returns in \p *pvalue the current size of \p limit. The supported ::CUlimit values are:

  • ::CU_LIMIT_STACK_SIZE: stack size in bytes of each GPU thread.
  • ::CU_LIMIT_PRINTF_FIFO_SIZE: size in bytes of the FIFO used by the ::printf() device system call.
  • ::CU_LIMIT_MALLOC_HEAP_SIZE: size in bytes of the heap used by the ::malloc() and ::free() device system calls.
  • ::CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH: maximum grid depth at which a thread can issue the device runtime call ::cudaDeviceSynchronize() to wait on child grid launches to complete.
  • ::CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT: maximum number of outstanding device runtime launches that can be made from this context.
  • ::CU_LIMIT_MAX_L2_FETCH_GRANULARITY: L2 cache fetch granularity.
  • ::CU_LIMIT_PERSISTING_L2_CACHE_SIZE: Persisting L2 cache size in bytes

\param limit - Limit to query \param pvalue - Returned size of limit

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_UNSUPPORTED_LIMIT \notefnerr

\sa ::cuCtxCreate, ::cuCtxDestroy, ::cuCtxGetApiVersion, ::cuCtxGetCacheConfig, ::cuCtxGetDevice, ::cuCtxGetFlags, ::cuCtxPopCurrent, ::cuCtxPushCurrent, ::cuCtxSetCacheConfig, ::cuCtxSetLimit, ::cuCtxSynchronize, ::cudaDeviceGetLimit