Skip to content

Commit

Permalink
pass usearch defines to enable simsimd and native f16 for optimized b…
Browse files Browse the repository at this point in the history
…uilds
  • Loading branch information
var77 committed Sep 24, 2024
1 parent c458731 commit b6df5fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish-cli-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
type: string
description: "CLI version"
required: true
default: "0.3.24"
default: "0.3.25"
IMAGE_NAME:
type: string
description: "Container image name to tag"
Expand Down Expand Up @@ -90,6 +90,7 @@ jobs:
linux/amd64
build-args: |
RUSTFLAGS=${{ format('-C target-cpu={0}', matrix.target) }}
CXXFLAGS=${{ format('-march={0} -DUSEARCH_USE_SIMSIMD=1 -DUSEARCH_USE_FP16LIB=0', matrix.target) }}
file: Dockerfile.cli
push: true
tags: |
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ COPY . .
ENV ORT_STRATEGY="system"
ARG RUSTFLAGS=""
ENV RUSTFLAGS=$RUSTFLAGS
ARG CXXFLAGS=""
ENV CXXFLAGS=$CXXFLAGS

# Remove lantern_extras from workspace
RUN rm -rf lantern_extras && sed -i -e 's/"lantern_extras",//' Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion lantern_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lantern_cli"
version = "0.3.24"
version = "0.3.25"
edition = "2021"

[[bin]]
Expand Down

0 comments on commit b6df5fe

Please sign in to comment.