summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Elsing <david.elsing@posteo.net>2026-02-03 21:33:21 +0100
committerLudovic Courtès <ludo@gnu.org>2026-02-10 23:49:15 +0100
commit82f8434094f68c919a07faec81c78296dedcb5ff (patch)
tree8dc4eee076c16833eefc7668bb1189a53a793c7c /gnu
parent67aab9bb0f93593c2f4878d3ad72c49e1f5a420e (diff)
gnu: Add rocmlir.
* gnu/packages/llvm.scm (rocmlir): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/llvm.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 0e13d69370d..3723ab8daad 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")