bv-runtime-apptainer 0.1.32

Apptainer/Singularity container runtime implementation for bv
Documentation
1
2
3
4
5
6
7
8
9
use bv_runtime::GpuProfile;

/// Return `--nv` when the tool requires a GPU.
pub fn nv_args(profile: &GpuProfile) -> Vec<String> {
    match &profile.spec {
        Some(spec) if spec.required => vec!["--nv".to_string()],
        _ => vec![],
    }
}