summaryrefslogtreecommitdiff
path: root/gnu/packages/rocm-libs.scm
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
commitb5c501ad471bfd9d558219b074dfa41560f6fa4d (patch)
tree5db72a4308b139511978bf98b46a668051f38896 /gnu/packages/rocm-libs.scm
parent82f8434094f68c919a07faec81c78296dedcb5ff (diff)
gnu: Add half-rocm.
* gnu/packages/rocm-libs.scm (half-rocm): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/rocm-libs.scm')
-rw-r--r--gnu/packages/rocm-libs.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/rocm-libs.scm b/gnu/packages/rocm-libs.scm
index 124c5bac497..3d7522d3f89 100644
--- a/gnu/packages/rocm-libs.scm
+++ b/gnu/packages/rocm-libs.scm
@@ -772,3 +772,27 @@ based on @code{rocPRIM}. It is a port of the CUDA Thrust library.")
programming model for writing performance-portable kernels, in particular for
GPUs using the HIP programming language.")
(license license:expat)))
+
+(define-public half-rocm
+ (package
+ (name "half-rocm")
+ (version %rocm-version)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ROCm/half")
+ (commit (string-append "rocm-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0vlsmrs3aiv30j1ifks9g9cl8b1xdjv7dd706w5npjhy27j4xzr1"))))
+ (build-system cmake-build-system)
+ (arguments '(#:tests? #f))
+ (native-inputs (list rocm-cmake))
+ (home-page "https://github.com/ROCm/half")
+ (synopsis "Half-precision floating-point library")
+ (description "This package provides a header-only C++ library for a
+half-precision floating point type (IEEE 754 conformant) together with common
+operations on this type.")
+ (license license:expat)))