pub fn validate_alignment(alignment: &Alignment) -> CudaResult<()>Expand description
Validates that an Alignment is a power of two and within a reasonable
range.
ยงErrors
Returns CudaError::InvalidValue if:
- The alignment is zero.
- The alignment is not a power of two.
- The alignment exceeds 256 MiB.