Skip to content

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator (ROCm in NixOS)

License

Notifications You must be signed in to change notification settings

JachinShen/onnxruntime-rocm-nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONNX runtime on ROCm in NixOS

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.

Build

nix develop .

TODO

  1. Support ROCm 6
  2. Support ONNX runtime 1.18

Known issues

  1. On AMD Ryzen 3600 (6 cores, 12 threads), it failed when compiling with 12 threads works with 6 threads.
  2. Succeeding to 1., building with ninja failed, but it works with make.
  3. Only release version works: llvm/llvm-project#88497

Reference

  1. ONNX runtime in NixOS (CPU and CUDA): https://github.com/NixOS/nixpkgs/blob/nixos-24.05/pkgs/development/libraries/onnxruntime/default.nix#L107

  2. Set ROCm device library for clang: ROCm/ROCm-Device-Libs#81

  3. Setup ROCm home in NixOS:

About

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator (ROCm in NixOS)

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.2%
  • Python 3.1%
  • C 2.8%
  • C# 1.1%
  • Cuda 0.9%
  • Assembly 0.8%
  • Other 2.1%