Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
# Need up-to-date compilers for kernels
CC: clang
CXX: clang++
# Treat warnings as errors to catch issues early
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
# pin the toolchain version to avoid surprises
Expand Down
2 changes: 2 additions & 0 deletions rust/lance-core/src/utils/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ mod x86 {
// EAX=7, ECX=0: Extended Features (includes AVX512)
// More info on calling CPUID can be found here (section 1.4)
// https://www.intel.com/content/dam/develop/external/us/en/documents/architecture-instruction-set-extensions-programming-reference.pdf
// __cpuid is safe in nightly but unsafe in stable, allow both
#[allow(unused_unsafe)]
let ext_cpuid_result = unsafe { __cpuid(7) };
check_flag(ext_cpuid_result.edx as usize, 23)
}
Expand Down
Loading