SDK Installation

The XCENA SDK package provides the software stack required to interface with XCENA devices, including drivers, libraries, tools, and example applications.

Prerequisites

Refer to System Requirements

1. Install from SDK Package

Note

Ubuntu 24.04 is the officially supported target. openSUSE Leap 16 and RHEL 9 are experimental - download the tarball whose name ends in _opensuse-leap_16.0 or _el9. See System Requirements.

Download the SDK package from GitHub Releases.

$ wget <URL_to_sdk_xxx.tar.xz>
$ tar xvf sdk_xxx.tar.xz
$ cd sdk_xxx
$ ./install.sh

Note The installation process includes the installation of the device driver (mxdriver). A system reboot is required to complete the installation and activate the driver.

Profiling

The installer verifies the profiler runtime with xtop self-check and fails if it does not pass. It also warns, without failing, when the xpti-profiled service is enabled but not running, and shows how to start it: profiling without sudo, Host CPU and device PC samples need it. Host CPU sampling in profiles needs perf: on Ubuntu the installer installs it for the running kernel when it can and only warns otherwise; on other distributions install perf yourself. Without it, profiles are captured without CPU samples (xtop capabilities shows why).

On its first run on a host, which includes upgrading a host installed with an earlier SDK, the installer lets every local user record Host CPU samples of their own processes, so users join no group and need no new login. It warns when it opens sampling this way and restarts xpti-profiled if it is running to apply it; a stopped service reads the setting when it starts. It writes this setting to /etc/systemd/system/xpti-profiled.service.d/00-xcena-sdk-host-cpu-sampling.conf; later installs leave that file as it is, edited or removed. ./install.sh --restrict-host-cpu-sampling limits sampling to root and members of xcena-profiler, the packages’ default, and --restrict-host-cpu-sampling=GROUP to another group, created if missing: add each user with sudo usermod -aG GROUP USER, after which the user logs in again. --open-host-cpu-sampling opens it again. A setting of your own, such as XPTI_HOST_SAMPLING_GROUP from sudo systemctl edit xpti-profiled, takes precedence and is kept.

For these samples the service runs perf as root, so kernel.perf_event_paranoid does not limit them. It records only the user space of the requester’s own processes, and it does not apply SELinux or AppArmor policy. On a host that keeps users apart with such policy, install with --restrict-host-cpu-sampling.

If an EnvironmentFile= path contains a systemd % specifier, the installer cannot statically inspect it and stops this step without changing the existing policy or its marker. Use a literal absolute environment-file path, or set XPTI_HOST_SAMPLING_GROUP explicitly in an administrator drop-in. Escaped spaces, line continuations and ordinary file patterns are inspected; unreadable policy files are errors rather than permission to open sampling.

The installer follows the systemd unit load path and drop-in precedence, including masks and empty EnvironmentFile= list resets. A masked service is left unchanged. Escaped environment variable names and complex or unknown value escapes stop the step before changing policy; use literal variable names and simple values in the service settings. Service aliases are not inspected automatically: if xpti-profiled.service resolves to another service name, the step fails before changing the sampling policy. Resolve that customization before retrying.

Applications built with an earlier SDK must be rebuilt: libxpti 1.6 changes the ABI of the profiling types and installs libxpti.so.1.6. Until then they stop with libxpti.so.1.5: cannot open shared object file or a symbol lookup error; see Troubleshooting. Upgrade libxpti and libpxl together.

CXL memory setup

The installer also sets up the ccma kernel module, which manages the device’s CXL memory. By default the CXL memory onlines as system-ram and ccma reserves none of it. To run device workloads in system-ram mode, set a reserve share first, or use devdax mode; see System Requirements → CXL memory host setup.

For multi-host deployments and independent SDK containers (where it is required), or to dedicate the full region to device memory, use devdax mode instead - run sudo ./scripts/setup_host.sh once and reboot, or run the installer with ./install.sh --with-host-setup. See System Requirements → devdax mode.

Verify pxcc

The SDK installer includes pxcc. Check that both compiler commands are available:

pxcc --version
pxcc++ --version

Then build Hello Sort. pxcc uses a host compiler and the MU toolchain, so both must be installed to compile a complete device application.

2. Verify Installation

After installation and reboot, run validate_host.sh to verify the entire setup:

wget https://raw.githubusercontent.com/xcena-dev/public_sdk_release/refs/heads/main/scripts/validate_host.sh
bash validate_host.sh

Example Output

  XCENA Host Environment Validation
  2026-02-12 09:21:03

--- System Environment ----------------------
  [ INFO ] OS            Ubuntu 24.04.3 LTS
  [ INFO ] Kernel        6.17.0-14-generic
  [ INFO ] Environment   Native

--- PCI / Hardware --------------------------
  [  OK  ] XCENA PCI device detected
           01:00.0 CXL [0502]: Device [20a6:0100] (rev 01)
           11:00.0 CXL [0502]: Device [20a6:0100] (rev 01)

--- CXL / DAX -------------------------------
  [  OK  ] cxl command found
  [  OK  ] daxctl command found
  [  OK  ] CEDT ACPI table present
  [  OK  ] CXL kernel modules loaded
  [  OK  ] CXL region detected
           region0  size=229.0 GB  type=ram  state=commit
           region1  size=229.0 GB  type=ram  state=commit
  [  OK  ] DAX device found
           dax0.0  perm=666  size=229.0 GB  mode=devdax
           dax1.0  perm=666  size=229.0 GB  mode=devdax

--- Driver ----------------------------------
  [  OK  ] mx_dma module loaded
  [  OK  ] /dev/mx_dma/ devices found
  [  OK  ] /dev/mx_dma/ device permissions OK

--- PXL Library -----------------------------
  [  OK  ] libpxl installed (v3.0.0)
  [  OK  ] pxl_resourced service active
  [  OK  ] pxl_resourced service enabled

--- CLI & Tools -----------------------------
  [  OK  ] xcena_cli found
  [  OK  ] Number of devices : 2
           [0] mx1p  BDF=0000:01:00.0  computable=Yes
           [1] mx1p  BDF=0000:11:00.0  computable=Yes
  [  OK  ] xtop found

--- MU Toolchain ----------------------------
  [  OK  ] MU library installed
  [  OK  ] MU LLVM installed

Validation Categories

System Environment

  • Host OS distribution and version, Linux kernel version, and execution environment type (Native or Docker).
  • Ensures the system meets the minimum platform requirements for the SDK.

PCI / Hardware

  • Detects XCENA CXL Type 3 devices on the PCIe bus via lspci.
  • At least one device must be present for the SDK to operate.

CXL / DAX

  • Verifies CXL userspace utilities (cxl, daxctl) and CEDT ACPI table presence.
  • Checks CXL kernel module loading and CXL region commitment.
  • Reports DAX device availability and memory mode. Compare the mode with the system-ram or devdax setup selected below.

Driver

  • Checks that the mx_dma kernel module is loaded.
  • Verifies /dev/mx_dma/ character device nodes are created with proper permissions for DMA communication.

PXL Library

  • Confirms the PXL shared library is installed.
  • Verifies the pxl_resourced resource management daemon is active (running) and enabled (auto-start on boot).

CLI & Tools

  • Verifies that xcena_cli can enumerate connected devices.
  • Checks that monitoring tools such as xtop are available in the system PATH.

MU Toolchain

  • Checks installation of the MU firmware library.
  • Verifies the MU LLVM cross-compiler toolchain required for building device-side MU kernel binaries.

Tip All items should show [ OK ] or [ INFO ]. If any item shows [ FAIL ] or [ WARN ], follow the guidance in the output or refer to the Troubleshooting guide. [ WARN ] MU LLVM is expected if the MU toolchain is not required for your use case.

On a host set up for independent SDK containers, pxl_resourced service not active (FAIL) and not enabled (WARN) are expected: the host daemon stays disabled there.

The DAX check looks for devdax devices, so in system-ram mode it reports No DAX device found (FAIL) or not in devdax mode (WARN). These results are expected in that mode; do not follow its daxctl reconfigure-device --mode=devdax hint unless you are switching to devdax mode.

Important

The CXL memory works in either of two modes - what matters is that the mode matches your intended setup (see System Requirements → CXL memory host setup):

  • system-ram managed by ccma (default): the ccma module must be loaded. Check ls /dev/ccma and cat /sys/class/misc/ccma/meminfo for reserved chunks; chunks appear only after a reserve share is armed.
  • devdax (multi-host / full-capacity setups, independent SDK containers): the DAX devices must show mode=devdax. Independent SDK containers also keep ccma installed. If not, run the host setup and reboot - it installs xcena-devdax.service, which re-applies the conversion on every boot:
    sudo ./scripts/setup_host.sh
    sudo reboot
    

    If a manual daxctl reconfigure-device --mode=devdax fails with Device or resource busy, the memory was already onlined as system-ram and used by the kernel - see Troubleshooting.