Skip to content

Commit 4b776a4

Browse files
committed
ROCm: include more libraries in the ROCm package
Include more libraries and tools in the ROCm package: - hipCUB - RCCL Merge hipRAND/rocRAND back into the base ROCm tool.
1 parent 459b4ad commit 4b776a4

File tree

7 files changed

+30
-54
lines changed

7 files changed

+30
-54
lines changed

cmssw-tools.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Requires: icc
174174
Requires: icx
175175
Requires: intel-vtune
176176
Requires: ruff
177-
%{!?without_rocm:Requires: rocm rocm-rocrand}
177+
%{!?without_rocm:Requires: rocm}
178178
Requires: cmsmon-tools
179179
Requires: dip
180180
%else

fwlite-tools.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# tool is added
44
## INITENV SET CMSSW_TOOL_CONF_ROOT $FWLITE_TOOL_CONF_ROOT
55

6-
%{!?without_rocm:Requires: rocm rocm-rocrand}
6+
%{!?without_rocm:Requires: rocm}
77
%{!?without_cuda:Requires: cuda cuda-compatible-runtime}
88

99
Requires: alpaka

rocm-rocrand.spec

Lines changed: 0 additions & 34 deletions
This file was deleted.

rocm.spec

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,17 @@ Source19: https://%{repository}/%{repoversion}/main/rocprofiler-docs-2.0.60302.6
4545
Source20: https://%{repository}/%{repoversion}/main/rocprofiler-plugins-2.0.60302.60302-66.el%{rhel}.%{_arch}.rpm
4646
Source21: https://%{repository}/%{repoversion}/main/rocprofiler-register-0.4.0.60302-66.el%{rhel}.%{_arch}.rpm
4747
Source22: https://%{repository}/%{repoversion}/main/rocprofiler-systems-0.1.1.60302-66.el%{rhel}.%{_arch}.rpm
48-
Source23: https://%{repository}/%{repoversion}/main/rocthrust-devel-3.3.0.60302-66.el%{rhel}.%{_arch}.rpm
49-
48+
Source23: https://%{repository}/%{repoversion}/main/hipcub-devel-3.3.0.60302-66.el%{rhel}.%{_arch}.rpm
49+
Source24: https://%{repository}/%{repoversion}/main/rocthrust-devel-3.3.0.60302-66.el%{rhel}.%{_arch}.rpm
50+
Source25: https://%{repository}/%{repoversion}/main/hiprand-2.11.1.60302-66.el%{rhel}.%{_arch}.rpm
51+
Source26: https://%{repository}/%{repoversion}/main/hiprand-devel-2.11.1.60302-66.el%{rhel}.%{_arch}.rpm
52+
Source27: https://%{repository}/%{repoversion}/main/rocrand-3.2.0.60302-66.el%{rhel}.%{_arch}.rpm
53+
Source28: https://%{repository}/%{repoversion}/main/rocrand-devel-3.2.0.60302-66.el%{rhel}.%{_arch}.rpm
54+
Source29: https://%{repository}/%{repoversion}/main/rccl-2.21.5.60302-66.el%{rhel}.%{_arch}.rpm
55+
Source30: https://%{repository}/%{repoversion}/main/rccl-devel-2.21.5.60302-66.el%{rhel}.%{_arch}.rpm
5056

5157
# sources for rocprofiler-register
52-
Source24: git+https://github.com/ROCm/rocprofiler-register.git?obj=%{rocprofiler_register_branch}/%{rocprofiler_register_tag}&export=%{rocprofiler_register_pkg}&submodules=1&output=/%{rocprofiler_register_pkg}.tgz
58+
Source99: git+https://github.com/ROCm/rocprofiler-register.git?obj=%{rocprofiler_register_branch}/%{rocprofiler_register_tag}&export=%{rocprofiler_register_pkg}&submodules=1&output=/%{rocprofiler_register_pkg}.tgz
5359

5460
BuildRequires: gmake cmake
5561
Requires: numactl zstd fmt
@@ -60,7 +66,7 @@ AutoReq: no
6066

6167
# unpack rocprofiler-register
6268
mkdir src
63-
tar xavf %{SOURCE24} -C src
69+
tar xavf %{SOURCE99} -C src
6470

6571
%build
6672
rpm2cpio %{SOURCE0} | cpio -idmv
@@ -87,6 +93,13 @@ rpm2cpio %{SOURCE20} | cpio -idmv
8793
rpm2cpio %{SOURCE21} | cpio -idmv
8894
rpm2cpio %{SOURCE22} | cpio -idmv
8995
rpm2cpio %{SOURCE23} | cpio -idmv
96+
rpm2cpio %{SOURCE24} | cpio -idmv
97+
rpm2cpio %{SOURCE25} | cpio -idmv
98+
rpm2cpio %{SOURCE26} | cpio -idmv
99+
rpm2cpio %{SOURCE27} | cpio -idmv
100+
rpm2cpio %{SOURCE28} | cpio -idmv
101+
rpm2cpio %{SOURCE29} | cpio -idmv
102+
rpm2cpio %{SOURCE30} | cpio -idmv
90103

91104
# build rocprofiler-register
92105
sed -i -e 's|add_subdirectory(external)|find_package(fmt REQUIRED)\nadd_subdirectory(external)|' src/%{rocprofiler_register_pkg}/CMakeLists.txt

scram-tools.file/tools/rocm-rocrand/rocm-rocrand.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<tool name="rocm-rccl" version="@TOOL_VERSION@" revision="1">
2+
<info url="https://rocm.docs.amd.com/projects/rccl/en/docs-@TOOL_VERSION@/"/>
3+
<use name="rocm"/>
4+
<lib name="rccl"/>
5+
</tool>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<tool name="rocm-rocrand" version="@TOOL_VERSION@" revision="1">
2+
<info url="https://rocm.docs.amd.com/projects/rocRAND/en/docs-@TOOL_VERSION@/"/>
3+
<use name="rocm"/>
4+
<lib name="hiprand"/>
5+
<lib name="rocrand"/>
6+
</tool>

0 commit comments

Comments
 (0)