[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/11: gnu: Add rocr-runtime.
From: |
guix-commits |
Subject: |
06/11: gnu: Add rocr-runtime. |
Date: |
Sun, 8 Aug 2021 10:57:27 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit a85eff8171966ecba5b6c5bb66d7ff1f9fda7fb7
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Aug 6 08:24:44 2021 +0200
gnu: Add rocr-runtime.
* gnu/packages/rocm.scm (rocr-runtime): New variable.
---
gnu/packages/rocm.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index 4ed4d95..2155ea2 100644
--- a/gnu/packages/rocm.scm
+++ b/gnu/packages/rocm.scm
@@ -169,3 +169,42 @@ AMDGPU code objects.")
(description "User-mode API interfaces used to interact with the ROCk
driver.")
(license license:ncsa)))
+
+(define-public rocr-runtime
+ (package
+ (name "rocr-runtime")
+ (version %rocm-version)
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url
"https://github.com/RadeonOpenCompute/ROCR-Runtime.git")
+ (commit (string-append "rocm-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0jqfqf5ymwlbpac065bhigmkgsk7mbyimdgvca7ymn38wpf80ka7"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags
+ `(,(string-append
+ "-DBITCODE_DIR="
+ (assoc-ref %build-inputs "rocm-device-libs")
+ "/amdgcn/bitcode/"))
+ #:tests? #f ; No tests.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "src"))))))
+ (inputs
+ `(("libelf" ,libelf)
+ ("numactl" ,numactl)
+ ("llvm" ,llvm-for-rocm)
+ ("roct-thunk-interface" ,roct-thunk-interface)
+ ("rocm-device-libs" ,rocm-device-libs))) ; For bitcode.
+ (native-inputs `(("xxd" ,xxd)))
+ (home-page "https://github.com/RadeonOpenCompute/ROCR-Runtime")
+ (synopsis "ROCm Platform Runtime")
+ (description "User-mode API interfaces and libraries necessary for host
+applications to launch compute kernels to available HSA ROCm kernel agents.")
+ (license license:ncsa)))
- branch master updated (a75cc5f -> e81cf4e), guix-commits, 2021/08/08
- 02/11: gnu: Add llvm-for-rocm., guix-commits, 2021/08/08
- 01/11: gnu: Add rocm-cmake., guix-commits, 2021/08/08
- 04/11: gnu: Add rocm-comgr., guix-commits, 2021/08/08
- 07/11: gnu: Add rocclr., guix-commits, 2021/08/08
- 06/11: gnu: Add rocr-runtime.,
guix-commits <=
- 10/11: gnu: Add rocm-bandwidth-test., guix-commits, 2021/08/08
- 09/11: gnu: Add rocminfo., guix-commits, 2021/08/08
- 08/11: gnu: Add rocm-opencl-runtime., guix-commits, 2021/08/08
- 11/11: gnu: darktable: Add compatibility for ROCm., guix-commits, 2021/08/08
- 05/11: gnu: Add roct-thunk-interface., guix-commits, 2021/08/08
- 03/11: gnu: Add rocm-device-libs., guix-commits, 2021/08/08