Skip to content

fix: add fallback case for SIMD_SUPPORT - #8303

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
dtolnay-contrib:simd
Aug 7, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
dtolnay-contrib:simd

Conversation

@dtolnay

@dtolnay dtolnay commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Without this, lance-core does not compile successfully for architectures other than aarch64, x86_64, loongarch64.

error[E0308]: mismatched types
   --> rust/lance-core/src/utils/cpu.rs:161:67
    |
161 |   pub static SIMD_SUPPORT: LazyLock<SimdSupport> = LazyLock::new(|| {
    |  ___________________________________________________________________^
162 | |     #[cfg(all(target_arch = "aarch64", any(target_os = "ios", target_os = "tvos")))]
...   |
213 | | });
    | |_^ expected `SimdSupport`, found `()`

Repro: cargo check --target=riscv64gc-unknown-linux-gnu --config='target.riscv64gc-unknown-linux-gnu.zstd.buildscript=""'

@github-actions github-actions Bot added the bug Something isn't working label Aug 5, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The unsupported-architecture fallback resolves the demonstrated build failure while preserving optimized architecture paths and selecting the existing scalar tier elsewhere.

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @dtolnay, happy to see you!

@Xuanwo
Xuanwo merged commit 3c46ce5 into lance-format:main Aug 7, 2026
39 checks passed
meta-codesync Bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Aug 8, 2026
Summary:
This beta release contains all of the following PRs relevant to fbsource:

- lance-format/lance#8296
- lance-format/lance#8303
- lancedb/lancedb#3800

Reviewed By: JakobDegen

Differential Revision: D115287840

fbshipit-source-id: 5c170f46b986439255204e14a3a295654600f447
meta-codesync Bot pushed a commit to meta/sapling that referenced this pull request Aug 8, 2026
Summary:
This beta release contains all of the following PRs relevant to fbsource:

- lance-format/lance#8296
- lance-format/lance#8303
- lancedb/lancedb#3800

Reviewed By: JakobDegen

Differential Revision: D115287840

fbshipit-source-id: 5c170f46b986439255204e14a3a295654600f447
@Xuanwo Xuanwo added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants