Skip to main content

CUctxCreateParams

Type Alias CUctxCreateParams 

Source
pub type CUctxCreateParams = CUctxCreateParams_st;
Expand description

Params for creating CUDA context.

Both execAffinityParams and cigParams cannot be non-NULL at the same time. If both are NULL, the context will be created as a regular CUDA context.

Aliased Type§

#[repr(C)]
pub struct CUctxCreateParams { pub execAffinityParams: *mut CUexecAffinityParam_st, pub numExecAffinityParams: i32, pub cigParams: *mut CUctxCigParam_st, }

Fields§

§execAffinityParams: *mut CUexecAffinityParam_st

Array of execution affinity parameters to limit context resources (e.g., SM count). Only supported Volta+ MPS. Mutually exclusive with cigParams.

§numExecAffinityParams: i32

Number of elements in execAffinityParams array. Must be 0 if execAffinityParams is NULL.

§cigParams: *mut CUctxCigParam_st

CIG (CUDA in Graphics) parameters for sharing data from D3D12/Vulkan graphics clients. Mutually exclusive with execAffinityParams.