Install Runtime (Linux)#

The Tools package includes the Compiler, but running models on real MemryX AI (MXA) chips requires a separate driver and runtime package. Follow the appropriate method for your system below.

Important

Install the hardware before installing the Driver/Runtime in order to auto-update MXA firmware. If you install in the opposite order, please run this command to check for firmware updates.

System Requirements#

The driver and runtime libraries support multiple CPU and distribution combinations, provided via:

  • apt package repository (recommended)

  • Standalone installer script (sh)

Any modern° x86_64 system with a suitable M.2 slot should work. Please see setup hardware for M.2 installation guidance.

°AVX2 Requirement

Our prebuilt packages require AVX2 instructions. Pretty much any Intel/AMD CPU that’s less than ~10 years old will have this, with the exception of the Intel Celeron series, such as the N5105.

However, you can still use C++ runtime if you compile from source.

For ARM, these are some great SBCs that work well with MX3 M.2:

  • Raspberry Pi 5

  • Orange Pi 5 Plus / Max / Ultra

  • Radxa Rock 5B

Other ARM boards work too, but some may need edits to the device tree. Contact MemryX if you encounter such a board.

The driver and runtime libraries are available for Ubuntu 25.04 on RISC-V, and built for the SpaceMIT K1 and K3. For most other systems you may need to compile from source.

First-Time Installation#

This method is recommended for Debian-based distributions (e.g., Ubuntu). It allows for automatic updates alongside your system.

Step 1: Prepare Your System

Ensure kernel headers are installed before installing the driver:

sudo apt install linux-headers-$(uname -r)
Step 2: Add MemryX Repo and Key

Add the MemryX signing key:

wget -qO- https://developer.memryx.com/deb/memryx.asc | sudo tee /etc/apt/trusted.gpg.d/memryx.asc >/dev/null

Add the MemryX repository:

echo 'deb https://developer.memryx.com/deb stable main' | sudo tee /etc/apt/sources.list.d/memryx.list >/dev/null
Step 3: Update and Install

Simply update your package list and install the MemryX drivers and runtime libraries using:

sudo apt update
sudo apt install memx-drivers-beta memx-accl-beta
Step 4: ARM Systems Only (Raspberry Pi, Orange Pi, etc.)

For ARM systems, run the following command after installation to configure board-specific settings:

sudo mx_arm_setup

This will open a menu to select your platform and apply the necessary configurations (e.g., enabling PCIe Gen 3.0 for Raspberry Pi 5).

Step 5: Restart Your System

Restart your system to apply the changes.

Step 6: Verify Installation

Check it’s installed and hardware is detected with:

mx-smi
Step 7: Runtime Plugins (recommended)

You may need to run pre/post models in e.g. onnxruntime or TFlite. For these, use the runtime plugins package:

sudo apt install memx-accl-plugins-beta

For non-Debian distributions, use the self-extracting installer script. Ensure your system can build kernel modules (Linux headers, gcc, make).

Step 1: Download the Installer
wget https://developer.memryx.com/deb/install.sh
chmod +x install.sh
Step 2: Run the Installer
sudo ./install_dev.sh

Accept the default paths unless you have specific requirements.

Step 3: ARM Systems Only (Raspberry Pi 5, Orange Pi 5 Plus, etc.)

For ARM systems, run the following command after installation to configure board-specific settings:

sudo mx_arm_setup
Step 4: Restart Your System

Restart your system to apply the changes.

Step 5: Verify Installation

Verify that the MemryX driver is installed by checking its version:

cat /sys/class/memx_pcie/memx*/verinfo

For built-from-source embedded distributions such as Yocto, you will have to build runtime components from source, available via our GitHub repos.

When possible, we strongly encourage users that can run an apt-based distro (Debian/Ubuntu/Armbian/etc.) to use it on their board instead.

Upgrade#

For apt-managed installations, packages should be updated automatically by the package manager. You can force an upgrade with:

sudo apt update && sudo apt upgrade

Version Check#

To check your installed runtime version, you can run:

mx_bench --version

You can also check the driver and firmware version (per device) via:

cat /sys/class/memx_pcie/memx*/verinfo