Skip to main content

GPU

Constant GPU 

Source
pub const GPU: &str = "SMOLVM_GPU";
Expand description

Env var the host sets on guest init to signal GPU acceleration was requested.

Present means “host asked for GPU”; the guest agent reads this and emits a post-boot sanity log confirming whether /dev/dri/* nodes actually appeared. Absent means no GPU was requested.

This is a boolean sentinel — the value is VALUE_ON when set.