elixir-nx / ex_faiss

Elixir front-end to Facebook AI Similarity Search (Faiss)
45 stars 6 forks source link

I could not install ex_faiss #10

Open chanphiromsok opened 1 year ago

chanphiromsok commented 1 year ago

when I try mix deps.get and get error like image below

Screen Shot 2023-04-25 at 10 42 42 AM
mix.exs 
 defp deps do
    [
      {:phoenix, "~> 1.7.1"},
      {:phoenix_ecto, "~> 4.4"},
      {:ecto_sql, "~> 3.6"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 3.3"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:phoenix_live_view, "~> 0.18.16"},
      {:floki, ">= 0.30.0", only: :test},
      {:phoenix_live_dashboard, "~> 0.7.2"},
      {:esbuild, "~> 0.5", runtime: Mix.env() == :dev},
      {:tailwind, "~> 0.1.8", runtime: Mix.env() == :dev},
      {:swoosh, "~> 1.3"},
      {:finch, "~> 0.13"},
      {:telemetry_metrics, "~> 0.6"},
      {:telemetry_poller, "~> 1.0"},
      {:gettext, "~> 0.20"},
      {:jason, "~> 1.2"},
      {:plug_cowboy, "~> 2.5"},
      {:bumblebee, "~> 0.3.0"},
      {:nx, "~> 0.5.3"},
      {:exla, "~> 0.5.3"},
      {:ex_faiss, github: "elixir-nx/ex_faiss"}
    ]
  end
qzg commented 1 year ago

I'm having the same error as above. Note I'm running on Apple Silicon. I did set USE_LLVM_BREW=true after brew installing llvm and cmake. Any guidance would be appreciated!

seanmor5 commented 1 year ago

FAISS needs OpenMP to compile: https://github.com/facebookresearch/faiss/blob/main/INSTALL.md. Can you possibly try brew install libomp?