Skip to content

Commit

Permalink
Make: Disable native bf16 in Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Aug 7, 2024
1 parent 31f7896 commit 01f93d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ jobs:
publish_rust:
name: Publish Rust
needs: versioning
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Check out refreshed version
uses: actions/checkout@v4
Expand Down
13 changes: 7 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn main() {
build
.define("USEARCH_USE_SIMSIMD", "1")
.define("SIMSIMD_DYNAMIC_DISPATCH", "1")
.define("SIMSIMD_NATIVE_BF16", "0")
.define("SIMSIMD_NATIVE_F16", "0");
} else {
build.define("USEARCH_USE_SIMSIMD", "0");
Expand Down Expand Up @@ -67,12 +68,12 @@ fn main() {
"SIMSIMD_TARGET_SVE_F16",
"SIMSIMD_TARGET_SVE_I8",
"SIMSIMD_TARGET_SVE",
"SIMSIMD_TARGET_NEON_BF16",
"SIMSIMD_TARGET_NEON_F16",
"SIMSIMD_TARGET_NEON_I8",
"SIMSIMD_TARGET_NEON",
],
_ => vec![
"SIMSIMD_TARGET_NEON_BF16",
"SIMSIMD_TARGET_NEON_F16",
"SIMSIMD_TARGET_NEON_I8",
"SIMSIMD_TARGET_NEON",
],
_ => vec![
"SIMSIMD_TARGET_SAPPHIRE",
"SIMSIMD_TARGET_GENOA",
"SIMSIMD_TARGET_ICE",
Expand Down

0 comments on commit 01f93d7

Please sign in to comment.