summaryrefslogtreecommitdiff
path: root/gnu/packages/rocm.scm
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2025-08-27 12:19:28 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-09-03 20:43:28 +0200
commite13a228bcb275ea1966b0d199da1de9e19d042a0 (patch)
tree05dfc58ea48009f5e067e890dc7d3ec793c62ac2 /gnu/packages/rocm.scm
parent622145e1ab181102b75fc0b90d84bb05406912df (diff)
gnu: Add rocm-hip-cpu.
* gnu/packages/rocm.scm (rocm-hip-cpu): New variable. Change-Id: I0b459ab0fe4b2e7f6835b906d178488fcb702a99 Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
Diffstat (limited to 'gnu/packages/rocm.scm')
-rw-r--r--gnu/packages/rocm.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index b65ac28b063..ea73239f596 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")