Skip to content

Commit cdb012c

Browse files
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_01D2WSmezQBNC3bUdHuGfGmo
1 parent f3e6223 commit cdb012c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ required-features = ["std"]
4242
name = "splat3d_flex"
4343
required-features = ["splat3d"]
4444

45+
# AMX examples import `ndarray::simd` / `ndarray::hpc`, both `#[cfg(feature =
46+
# "std")]`, so they must be skipped in `--no-default-features` CI jobs.
47+
[[example]]
48+
name = "amx_gemm_bench"
49+
required-features = ["std"]
50+
51+
[[example]]
52+
name = "amx_probe"
53+
required-features = ["std"]
54+
55+
[[example]]
56+
name = "amx_rb_probe"
57+
required-features = ["std"]
58+
4559
[dependencies]
4660
num-integer = { workspace = true }
4761
num-traits = { workspace = true }

0 commit comments

Comments
 (0)