blob: 2b58017ee7f5f8c10b5cac81711fc8990595ec9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
;;; Copyright © 2023 Advanced Micro Devices, Inc.
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (amd packages rocm-tools)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix build-system cmake)
#:use-module (guix build-system python)
#:use-module (guix git-download)
#:use-module (guix licenses)
#:use-module (gnu packages)
#:use-module (gnu packages base)
#:use-module (gnu packages linux)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages python-science)
#:use-module (gnu packages serialization)
#:use-module (amd packages rocm-origin)
#:use-module (amd packages rocm-base))
; rocminfo
(define (make-rocminfo rocr-runtime)
(package
(name "rocminfo")
(version (package-version rocr-runtime))
(source
(rocm-origin name version))
(build-system cmake-build-system)
(arguments
`(#:build-type "Release"
#:tests? #f))
(inputs (list rocr-runtime python))
(propagated-inputs (list grep kmod))
(synopsis "ROCm application for reporting system info")
(description
"List @acronym{HSA,Heterogeneous System Architecture} Agents available to ROCm and show their properties.")
(home-page "https://github.com/RadeonOpenCompute/rocminfo")
(license ncsa)))
(define-public rocminfo
(make-rocminfo rocr-runtime))
; rocm-bandwidth-test
(define (make-rocm-bandwidth rocr-runtime)
(package
(name "rocm-bandwidth-test")
(version (package-version rocr-runtime))
(source
(rocm-origin "rocm_bandwidth_test" version))
(build-system cmake-build-system)
(arguments
(list
#:tests? #f ;No tests.
#:configure-flags #~(list "-DCMAKE_CXX_FLAGS=-Wno-error=cpp" ;ignores include reorg issue
)))
(inputs (list rocr-runtime))
(synopsis "Bandwith test for ROCm")
(description
"RocBandwidthTest is designed to capture the performance
characteristics of buffer copying and kernel read/write operations. The help
screen of the benchmark shows various options one can use in initiating
copy/read/writer operations. In addition one can also query the topology of the
system in terms of memory pools and their agents.")
(home-page "https://github.com/ROCm/rocm_bandwidth_test")
(license ncsa)))
(define-public rocm-bandwidth
(make-rocm-bandwidth rocr-runtime))
; rocm-smi
(define (make-rocm-smi version)
(package
(name "rocm-smi")
(version version)
(source
(rocm-origin "rocm_smi_lib" version))
(build-system cmake-build-system)
(arguments
`(#:build-type "Release"
#:tests? #f)) ;No tests.
(inputs (list python))
(propagated-inputs (list grep coreutils))
(synopsis "The ROCm System Management Interface (ROCm SMI) Library")
(description
"The ROCm System Management Interface Library, or ROCm SMI library,
is part of the Radeon Open Compute ROCm software stack. It is a C library for Linux that
provides a user space interface for applications to monitor and control GPU applications.")
(home-page "https://github.com/RadeonOpenCompute/rocm_smi_lib.git")
(license ncsa)))
(define-public rocm-smi
(make-rocm-smi rocm-version-latest))
; tensile
(define (make-tensile version)
(package
(name "tensile")
(version version)
(source
(rocm-origin name version))
(build-system python-build-system)
(native-inputs (list python-pandas))
(propagated-inputs (list msgpack-3 python-msgpack python-pyyaml
python-joblib python-psutil))
(synopsis "A GEMM kernel generator for AMD GPUs.")
(description
"Tensile is a tool for creating benchmark-driven backend libraries for GEMMs, GEMM-like problems
(such as batched GEMM), and general N-dimensional tensor contractions on a GPU. The Tensile library
is mainly used as backend library to rocBLAS. Tensile acts as the performance backbone for a wide
variety of 'compute' applications running on AMD GPUs.")
(home-page "https://github.com/ROCmSoftwarePlatform/Tensile.git")
(license expat)))
(define-public tensile
(make-tensile rocm-version-latest))
|