Skip to main content

llama_cpp_bindings_build/
build_feature.rs

1use enumflags2::bitflags;
2
3#[derive(Clone, Copy, Debug, Eq, PartialEq)]
4#[bitflags]
5#[repr(u16)]
6pub enum BuildFeature {
7    Cuda = 1 << 0,
8    CudaNoVmm = 1 << 1,
9    DynamicBackends = 1 << 2,
10    DynamicLink = 1 << 3,
11    FaultInjection = 1 << 4,
12    Metal = 1 << 5,
13    Openmp = 1 << 6,
14    Rocm = 1 << 7,
15    SharedStdcxx = 1 << 8,
16    StaticStdcxx = 1 << 9,
17    SystemGgml = 1 << 10,
18    SystemGgmlStatic = 1 << 11,
19    Vulkan = 1 << 12,
20}