Skip to content

Add native Windows support for Triton-XDNA#35

Open
rwfsmith wants to merge 9 commits intoamd:mainfrom
rwfsmith:windows-build-minimal
Open

Add native Windows support for Triton-XDNA#35
rwfsmith wants to merge 9 commits intoamd:mainfrom
rwfsmith:windows-build-minimal

Conversation

@rwfsmith
Copy link
Copy Markdown

@rwfsmith rwfsmith commented Apr 1, 2026

Platform changes (driver.py, setup.py, CMakeLists.txt):
MSVC JIT compilation (cl.exe) replacing GCC for NPU dispatch shims
Windows path handling throughout compiler and driver (.exe suffixes, path separators)
Dynamic library extension detection (.pyd on Windows, .so on Linux)
XRT SDK auto-detection via XILINX_XRT env var with Program Files fallback
Removed Linux-only platform gate; added Windows to supported OS list

Build infrastructure (new files):
build_windows.ps1: End-to-end automated build script
env_setup.ps1: Windows environment setup with pinned wheel versions

Documentation:
Added Windows Support section to README.md (requirements, build steps, environment variables, known limitations)

Tested on:

  • AMD Ryzen AI Max+ 395 (Strix Halo, AIE2P)
  • Windows 11 Pro, VS 2022, Python 3.13, XRT 2.19.0
  • NPU Driver 32.0.203.314

Known issues:
Seems like the Windows NPU driver is missing an overload to work with ELF, but it works with xclbinutil

Loading
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