AMD XDNA User space utilities

I’ve been experimenting with AI assisted coding using local LLMs on Cooker (Linux 7.0). The NPU on my Framework laptop, however, is not recognized, because even though the kernel drivers are installed and working, the user space utilities are not packaged.

These drivers can be cloned from GitHub like this:

git clone https://github.com/amd/xdna-driver.git --recursive

I can’t, however, get these to compile. I’m not a C++ developer, so getting this going is a non-trivial task for me. At first, the CMake script errored out because OpenMandriva is not a “supported” distribution, so I tried to fake it out and make it think it was building for Fedora by adding lines 116 and 117 to CMake/pkg.cmake:

elseif("${XDNA_CPACK_LINUX_PKG_FLAVOR}" MATCHES "openmandriva")
  set(XDNA_CPACK_LINUX_PKG_FLAVOR "fedora")

I’m still getting compile errors that are beyond my ability to fix. Is there any chance these utilities might get packaged for the distro, or can somebody (maybe @bero ) help me get this compiled?

Thanks!