libmir-cuda 0.3.0

CUDA inference backend for libmir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub use architecture::cuda::{CudaArchitecture, CudaDecoderRuntime};
use models::{execution::TaskExecutionPlan, semantic::SemanticModelSpec};

use crate::{Error, Result};

pub fn admit_architecture(
    task: &TaskExecutionPlan,
    semantic: Option<&SemanticModelSpec>,
) -> Result<CudaArchitecture> {
    match architecture::cuda::admit(task, semantic) {
        Ok(architecture) => Ok(architecture),
        Err(error) => Err(Error::UnsupportedDecoderLayer(error.to_string())),
    }
}