Skip to content

Commit

Permalink
Fix: Require bf16 for spdot_weights
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 29, 2024
1 parent dc8111e commit 3e868ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"simd",
"simsimd",
"Skylake",
"spdot",
"sqeuclidean",
"SVMs",
"tanimoto",
Expand Down
2 changes: 2 additions & 0 deletions include/simsimd/simsimd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,9 @@ SIMSIMD_INTERNAL void _simsimd_find_metric_punned_u16(simsimd_capability_t v, si
if (v & simsimd_cap_sve2_k) switch (k) {
case simsimd_metric_intersect_k: *m = (m_t)&simsimd_intersect_u16_sve2, *c = simsimd_cap_sve2_k; return;
case simsimd_metric_spdot_counts_k: *m = (m_t)&simsimd_spdot_counts_u16_sve2, *c = simsimd_cap_sve2_k; return;
#if SIMSIMD_TARGET_SVE_BF16 //! We also need `bf16` support for weights
case simsimd_metric_spdot_weights_k: *m = (m_t)&simsimd_spdot_weights_u16_sve2, *c = simsimd_cap_sve2_k; return;
#endif
default: break;
}
#endif
Expand Down

0 comments on commit 3e868ee

Please sign in to comment.