guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 54b09732033ac043b97767495f08ed4ef025e4bf
Author: David Elsing <[email protected]>
AuthorDate: Tue Feb 3 21:33:21 2026 +0100
gnu: Add origami.
* gnu/packages/rocm-libs.scm (origami): New variable.
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/packages/rocm-libs.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/rocm-libs.scm b/gnu/packages/rocm-libs.scm
index 2b5ae04141..46fe5fa4eb 100644
--- a/gnu/packages/rocm-libs.scm
+++ b/gnu/packages/rocm-libs.scm
@@ -24,6 +24,7 @@
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages base)
+ #:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages cpp)
#:use-module (gnu packages llvm)
@@ -210,6 +211,36 @@ AMD GPU assembly kernels.")
AMD GPU assembly kernels.")
(license (list license:expat))))
+(define-public origami
+ (package
+ (name "origami")
+ (version %rocm-version)
+ (source
+ (rocm-library-source
+ name
+ #:location "shared/origami"))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags #~'("-DROCM_FOUND=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-cmake
+ (lambda _
+ (substitute* "cmake/dependencies.cmake"
+ (("find_package\\(Git REQUIRED\\)") "")))))))
+ (inputs (list rocm-hip-runtime))
+ (native-inputs
+ (list boost
+ googletest
+ rocm-cmake
+ rocm-toolchain))
+ (home-page %rocm-libraries-url)
+ (synopsis "Library for selecting GEMM configurations for AMD GPU kernels")
+ (description "@code{origami} provides a method for selecting GEMM
+configurations deterministically based on compute and memory latencies.")
+ (license (list license:expat))))
+
(define-public tensile
(package
(name "tensile")