Skip to main content

align_batch_gpu

Function align_batch_gpu 

Source
pub fn align_batch_gpu(
    pairs: &[(&[u8], &[u8])],
    mode: AlignmentMode,
    scoring: &ScoringScheme,
) -> Result<Vec<AlignmentResult>>
Expand description

Batch-align sequence pairs on the GPU with default configuration.

Automatically selects the best available GPU backend (Metal on macOS, CUDA on NVIDIA). Falls back to CPU alignment if no GPU is available or the batch is too small.

ยงErrors

Returns an error if any alignment fails.