Skip to content

Conversation

fhunleth
Copy link
Contributor

Nerves supports 64-bit RISC-V devices. One of these is the MangoPi MQ Pro which is being used as an alternative to the Raspberry Pi. Currently it's much, much easier to use precompiled Rust binaries with Nerves. In fact, manually crosscompiling tokenizers with Nerves doesn't work due to a compiler error deep in the Rust build.

This adds the riscv64gc target to make it possible to use tokenizers with Nerves on 64-bit RISC-V devices as easy as 64-bit ARM ones. This, in turn, enables Bumblebee support.

See also the discussion at philss/rustler_precompiled#44 about trying out riscv64gc-unknown-linux-gnu here before adding it as a default in rustler_precompiled.

Nerves supports 64-bit RISC-V devices. One of these is the MangoPi MQ
Pro which is being used as an alternative to the Raspberry Pi. Currently
it's much, much easier to use precompiled Rust binaries with Nerves. In
fact, manually crosscompiling `tokenizers` with Nerves doesn't work due
to a compiler error deep in the Rust build.

This adds the riscv64gc target to make it possible to use `tokenizers`
with Nerves on 64-bit RISC-V devices as easy as 64-bit ARM ones. This,
in turn, enables Bumblebee support.
@polvalente polvalente merged commit 81f8218 into elixir-nx:main Dec 21, 2022
@josevalim
Copy link
Contributor

@philss do you think we will have problems precompiling with this or are we fine?

@philss
Copy link

philss commented Dec 21, 2022

@josevalim this one is well supported by cross, and is in Tier 2, so we should be fine 👍

@fhunleth fhunleth deleted the fh-add-riscv64-unknown-linux-gnu branch December 21, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants