Skip to content

Instantly share code, notes, and snippets.

View ajmasia's full-sized avatar
😉
Always learning!

Antonio Masiá ajmasia

😉
Always learning!
View GitHub Profile
@ajmasia
ajmasia / npu-amd-ryzen-ai9-debian13-guia_en.md
Created April 25, 2026 16:12
MPU Setup for Slimbook EVO AMD Ryzen AI 9 365 GUIDE

AMD Ryzen AI 9 NPU Guide (Strix Point) on Debian 13

Complete guide to enable and use the integrated NPU on the AMD Ryzen AI 9 365 processor (Slimbook EVO14 AI9) on Debian 13 trixie with the backports kernel.

What this NPU is and which driver handles it

The NPU (Neural Processing Unit) embedded in Ryzen AI CPUs is a dedicated AI inference accelerator built by AMD on the XDNA technology (originally Xilinx AIE). On Ryzen AI 9 (Strix Point) it is the AIE2+ generation with a 6×8 = 48-tile compute topology, capable of sustaining ~50 TOPS INT8 with much lower power than the integrated GPU.

The software stack has three pieces:

@ajmasia
ajmasia / install-npu-amd.sh
Last active April 25, 2026 16:20
MPU Setup for Slimbook EVO AMD Ryzen AI 9 365
#!/usr/bin/env bash
# install-npu-amd.sh
# Installer for AMD Ryzen AI NPU driver (XRT + amdxdna) on Debian/Ubuntu.
# Tested on: Debian 13 trixie + kernel 6.19 backports + Ryzen AI 9 365 (Strix Point).
set -euo pipefail
IFS=$'\n\t'
# =============================================================================
# Constants
@ajmasia
ajmasia / amd-controller.sh
Last active December 2, 2022 10:15
AMD Controller CLI for Slimbook ProX with AMD Ryzen 7 4800H
#!/usr/bin/env bash
# AMD Ryzen 7 4800H processor profiler CLI tool for Slimbook computers
# If you use different AND processor, please review the params here https://shorturl.at/jHJ35
COLOR_OFF='\033[0m' # Text Reset
GREEN='\033[0;32m' # Green
YELLOW='\033[0;33m' # Yellow
CPU=$(cat /proc/cpuinfo | grep name | uniq | cut -d ':' -f2 | sed -r "s/^\s+//g")
# nix-env -p /nix/var/nix/profiles/system --delete-generations old
# nix-collect-garbage -d
# nix-env -p /nix/var/nix/profiles/system --list-generations
## Remove entries from /boot/loader/entries:
# sudo bash -c "cd /boot/loader/entries; ls | grep -v <current-generation-name> | xargs rm"
@ajmasia
ajmasia / install_cc_tool.sh
Last active April 11, 2021 14:45
Install cc-tool script
#!/usr/bin/env bash
CC_TOOL_DIR="$HOME/cc-tool"
packages=("autoconf" "automake" "libusb" "boost" "pkgconfig" "libtool")
function innstall_packages() {
echo "👉 adding homebrew packages"
brew services stop --all
installed_packages=()
for i in "$@"; do
@ajmasia
ajmasia / sentry.js
Last active October 6, 2021 17:26
Sentry config Electron + Vue2
import Vue from 'vue'
import * as Sentry from '@sentry/electron'
import * as SentryIntegrations from '@sentry/integrations'
import { sentryDSN, eviorement, releaseVersion } from '@/config/env'
export const ElectronCrashReporter = () =>
Sentry.init({
dsn: sentryDSN,
environment: eviorement,
release: releaseVersion,