guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/11: gnu: Add rocm-device-libs.


From: guix-commits
Subject: 03/11: gnu: Add rocm-device-libs.
Date: Sun, 8 Aug 2021 10:57:26 -0400 (EDT)

lbraun pushed a commit to branch master
in repository guix.

commit 884334afecd8094982f1bf4fee568fd60e770713
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Aug 6 08:19:34 2021 +0200

    gnu: Add rocm-device-libs.
    
    * gnu/packages/rocm.scm (rocm-device-libs): New variable.
---
 gnu/packages/rocm.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index 17685c7..48d7099 100644
--- a/gnu/packages/rocm.scm
+++ b/gnu/packages/rocm.scm
@@ -90,3 +90,28 @@ tasks needed for the ROCM software stack.")
             "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
             "-DBUILD_SHARED_LIBS:BOOL=TRUE"
             "-DLLVM_VERSION_SUFFIX=")))))))
+
+(define-public rocm-device-libs
+  (package
+    (name "rocm-device-libs")
+    (version %rocm-version)
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url 
"https://github.com/RadeonOpenCompute/ROCm-Device-Libs.git";)
+                    (commit (string-append "rocm-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1f8xsylfajpxqjk6ayjnrry53y8b0a6lh9d72pd41nffxfyzvw3w"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "-DCMAKE_SKIP_BUILD_RPATH=FALSE"
+             "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE")))
+    (inputs `(("llvm" ,llvm-for-rocm)))
+    (home-page "https://github.com/RadeonOpenCompute/ROCm-Device-Libs";)
+    (synopsis "ROCm Device libraries")
+    (description "AMD-specific device-side language runtime libraries, namely
+oclc, ocml, ockl, opencl, hip and hc.")
+    (license license:ncsa)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]