~ruther/guix-local

e13a228bcb275ea1966b0d199da1de9e19d042a0 — Cayetano Santos 8 months ago 622145e
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>
1 files changed, 28 insertions(+), 0 deletions(-)

M gnu/packages/rocm.scm
M gnu/packages/rocm.scm => gnu/packages/rocm.scm +28 -0
@@ 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")