macro_rules! include_vmfb {
($path:expr) => { ... };
}Expand description
Embed a compiled .vmfb as a 64-byte-aligned &'static [u8].
IREE’s FlatBuffer verifier requires the module header to be aligned, and,
critically, the rodata segments (model weights) inside are only used
in place when they meet HAL buffer alignment (64 bytes). An underaligned
module silently falls back to staging copies through the device queue,
which costs RAM and deadlocks the bare-metal single-threaded HAL. A plain
include_bytes! (1-byte aligned) guarantees neither; use this for any
embedded model.