pub fn validate_dynamic_config(
config: &DynamicParallelismConfig,
) -> Result<(), LaunchError>Expand description
Validates a dynamic parallelism configuration.
Checks all CUDA hardware constraints:
- Nesting depth must be in
1..=24. - Pending launches must be at least 1.
- Sync depth must not exceed nesting depth.
- All child grid and block dimensions must be non-zero.
- Total threads per child block must not exceed the architecture limit.
- Child shared memory must not exceed the architecture limit.
ยงErrors
Returns LaunchError describing the first constraint violation found.