guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 82f8434094f68c919a07faec81c78296dedcb5ff
Author: David Elsing <[email protected]>
AuthorDate: Tue Feb 3 21:33:21 2026 +0100

    gnu: Add rocmlir.
    
    * gnu/packages/llvm.scm (rocmlir): New variable.
    
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/llvm.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 0e13d69370..3723ab8daa 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1994,6 +1994,37 @@ existing compilers together.")
 (define-public mlir-15
   (mlir-from-llvm llvm-15))
 
+(define-public rocmlir
+  (package
+    (name "rocmlir")
+    (version %rocm-llvm-version)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/ROCm/rocMLIR";)
+                     (commit (string-append "rocm-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0yr76dj465rw4ck9dk1mjjn3rgp8gb0v273f256rkb8rq6zd9nq3"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:build-type "Release"
+      #:configure-flags
+      #~(list
+         "-DCMAKE_C_COMPILER=clang"
+         "-DCMAKE_CXX_COMPILER=clang++"
+         "-DBUILD_FAT_LIBROCKCOMPILER=ON")
+      ;; Tests require hip-python, which depends on several ROCm libraries
+      #:tests? #f))
+    (native-inputs (list clang-rocm rocm-hip-runtime python rocm-cmake))
+    (home-page "https://github.com/ROCm/rocMLIR";)
+    (synopsis "MLIR-based convolution and GEMM kernel generator")
+    (description "rocMLIR is a MLIR-based convolution and GEMM kernel
+generator targetting AMD hardware.")
+    (license license:expat)))
+
 (define-public python-llvmlite
   (package
     (name "python-llvmlite")

Reply via email to