Commit cdb012c
committed
fix(ci): gate AMX examples behind required-features = ["std"]
examples/{amx_gemm_bench,amx_probe,amx_rb_probe}.rs import `ndarray::simd` and
`ndarray::hpc`, both `#[cfg(feature = "std")]`. With std as a default feature
they built locally, but the `--no-default-features` CI job compiles examples
with std off → `error[E0432]: unresolved import ndarray::simd` (item configured
out, gated behind `std`). Declared the three examples with
`required-features = ["std"]` (same pattern as `ocr_benchmark`) so non-std jobs
skip them.
Verified: `cargo build -p ndarray --no-default-features
--features portable-atomic-critical-section --examples` now finishes clean
(examples skipped) instead of failing on amx_gemm_bench.
https://claude.ai/code/session_01D2WSmezQBNC3bUdHuGfGmo1 parent f3e6223 commit cdb012c
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
| |||
0 commit comments