This is a fork of ONNX runtime in NixOS, which supports ROCm. Tested on AMD Raedon RX 6750 XT (gfx1030).
NixOS has a unique file system layout (/nix/store), so the build process is different from the other Linux distributions. Check flake.nix for details.
nix develop .
- Support ROCm 6
- Support ONNX runtime 1.18
- On AMD Ryzen 3600 (6 cores, 12 threads), it failed when compiling with 12 threads works with 6 threads.
- Succeeding to 1., building with ninja failed, but it works with make.
- Only release version works: llvm/llvm-project#88497
-
ONNX runtime in NixOS (CPU and CUDA): https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/development/libraries/onnxruntime/default.nix#L107
-
Set ROCm device library for clang: ROCm/ROCm-Device-Libs#81
-
Setup ROCm home in NixOS: