From b5c501ad471bfd9d558219b074dfa41560f6fa4d Mon Sep 17 00:00:00 2001 From: David Elsing Date: Tue, 3 Feb 2026 21:33:21 +0100 Subject: gnu: Add half-rocm. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/rocm-libs.scm (half-rocm): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/rocm-libs.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages') 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))) -- cgit v1.3