From e13a228bcb275ea1966b0d199da1de9e19d042a0 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Wed, 27 Aug 2025 12:19:28 +0200 Subject: [PATCH] gnu: Add rocm-hip-cpu. * gnu/packages/rocm.scm (rocm-hip-cpu): New variable. Change-Id: I0b459ab0fe4b2e7f6835b906d178488fcb702a99 Signed-off-by: Danny Milosavljevic --- gnu/packages/rocm.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm index b65ac28b06..ea73239f59 100644 --- a/gnu/packages/rocm.scm +++ b/gnu/packages/rocm.scm @@ -100,6 +100,34 @@ tasks needed for the ROCM software stack.") oclc, ocml, ockl, opencl, hip and hc.") (license license:ncsa))) +(define-public rocm-hip-cpu + ;; There are no releases or tags. + (let ((commit "e112c935057434897bb12d9ab3910380a8bd5f58") + (release "0")) + (package + (name "rocm-hip-cpu") + (version "0.1.4142") ;from CMakeLists.txt + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ROCm/HIP-CPU/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1rbih56kfry7scvww54dwx8ph11ddzc5bf4ww1vs1vmhi3r05gpa")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DBUILD_EXAMPLES=ON"))) + (home-page "https://github.com/ROCm/HIP-CPU/") + (synopsis "An implementation of HIP that works on CPUs") + (description "The HIP CPU Runtime is a header-only library that allows +CPUs to execute unmodified HIP code. It is generic and does not assume a +particular CPU vendor or architecture.") + (license license:expat)))) + (define-public rocm-comgr (package (name "rocm-comgr")