elixir-nx / xla

Pre-compiled XLA extension
Apache License 2.0
83 stars 21 forks source link

Fail to download pre-build dll for Intel Mac #52

Closed zacky1972 closed 10 months ago

zacky1972 commented 10 months ago

Hi,

I've built CI using GitHub Actions and EXLA.

It succeeded when 0.5 but failed when 0.6. The log shows downloading was failed.

XLA still supports Intel Mac? Will binary for it be available?

josevalim commented 10 months ago

Download worked fine for me on both Intel and Arm Macs. What are your logs? Could it be something related to the internet connection?

zacky1972 commented 10 months ago

Oh, really?

I'm testing it again.

zacky1972 commented 10 months ago

Done.

I found XLA cannot be found when running on macOS 12. The related log is here:

==> exla
could not compile dependency :exla, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile exla --force", update it with "mix deps.update exla" or clean it with "mix deps.clean exla"
** (RuntimeError) could not find v0.5.0 release under https://github.com/elixir-nx/xla/releases
    (xla 0.5.0) lib/xla.ex:190: XLA.download_matching!/1
    (xla 0.5.0) lib/xla.ex:33: XLA.archive_path!/0
    /Users/runner/work/pelemay_backend/pelemay_backend/benchmarks/distributed_computing_bench/deps/exla/mix.exs:112: EXLA.MixProject.extract_xla/1
    (mix 1.15.4) lib/mix/task.ex:519: Mix.Task.run_alias/6
    (mix 1.15.4) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
    (mix 1.15.4) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
    (mix 1.15.4) lib/mix/tasks/compile.all.ex:93: Mix.Tasks.Compile.All.with_logger_app/2
    (mix 1.15.4) lib/mix/tasks/compile.all.ex:56: Mix.Tasks.Compile.All.run/1
Error: Process completed with exit code 1.

Running macOS 13 has been successful.

jonatanklosko commented 10 months ago

This is the same as #43. GitHub Actions macOS runners have fixed IPs, so calls to GitHub API may fall under rate limiting. You can try authorizing the requests by using the CI token:

env:
  XLA_HTTP_HEADERS: "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"
zacky1972 commented 10 months ago

@jonatanklosko Thanks! It works well!