Skip to main content

BUILD_VARIANT

Constant BUILD_VARIANT 

Source
pub const BUILD_VARIANT: &str;
Expand description

Compile-time identifier for the build of the server that is running.

Resolves to "cuda" when either the cuda or tensorrt Cargo feature is enabled — the production CUDA image (Dockerfile.cuda) turns on both, and operators care about “is this the GPU image?” not “which EP variant did it register”. Otherwise resolves to "cpu" (the default MLAS build).