Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aqlprofile.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## INCLUDE rocm-config
### RPM external aqlprofile %{rocm_version}
### RPM external aqlprofile %{rocm_version_num}

Source: %{rocm_systems_source}
Requires: rocm-core rocr-runtime
Expand Down
5 changes: 3 additions & 2 deletions comgr.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## INCLUDE rocm-config
### RPM external comgr %{rocm_version_num}
Source0: https://github.com/ROCm/llvm-project/archive/refs/tags/rocm-%{realversion}.tar.gz
Requires: rocm-llvm rocm-core zlib zstd cmake ninja libxml2
BuildRequires: cmake ninja
Requires: rocm-llvm rocm-core zlib zstd libxml2
Patch0: 0001-comgr-link-with-static-llvm

%prep
Expand Down Expand Up @@ -33,4 +34,4 @@ sed -E -i -e 's@\s[^ ]*libLLVM.so(\.[0-9]+)+git\s@ @' %{_builddir}/build-comgr/C

make -C %{_builddir}/build-comgr %{makeprocesses} VERBOSE=1
%install
make -C %{_builddir}/build-comgr install VERBOSE=1
make -C %{_builddir}/build-comgr install VERBOSE=1
3 changes: 2 additions & 1 deletion hip.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
## INITENV SET HIP_CLANG_PATH ${ROCM_LLVM_ROOT}/lib/llvm/bin
## INITENV HIP_PLATFORM amd
Source0: https://github.com/ROCm/rocm-systems/archive/refs/tags/rocm-%{realversion}.tar.gz
Requires: rocm-llvm rocm-core rocr-runtime rocprofiler-register numactl py3-CppHeaderParser python3 comgr
BuildRequires: py3-CppHeaderParser
Requires: rocm-llvm rocm-core rocr-runtime rocprofiler-register numactl python3 comgr
Provides: perl(URI::Escape)
%prep
%setup -q -n rocm-systems-rocm-%{realversion}
Expand Down
2 changes: 1 addition & 1 deletion hipblas-common.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## INCLUDE rocm-config
### RPM external hipblas-common %{rocm_version}
### RPM external hipblas-common %{rocm_version_num}
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion hipfft.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external hipfft %{rocm_version}
### RPM external hipfft %{rocm_version_num}
Requires: rocfft
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion hiprand.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external hiprand %{rocm_version}
### RPM external hiprand %{rocm_version_num}
Requires: rocrand comgr
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion hipsolver.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external hipsolver %{rocm_version}
### RPM external hipsolver %{rocm_version_num}
Requires: rocblas rocsparse rocr-runtime rocsolver
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion hipsparse.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external hipsparse %{rocm_version}
### RPM external hipsparse %{rocm_version_num}
Requires: rocprim rocsparse
## INCLUDE rocm-libraries-build-new
8 changes: 4 additions & 4 deletions hipsparselt.spec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## INCLUDE rocm-config
### RPM external hipsparselt %{rocm_version}
Source0: https://github.com/ROCm/rocm-libraries/archive/refs/tags/%{rocm_version}.tar.gz
### RPM external hipsparselt %{rocm_version_num}
Source0: %{rocm_libraries_source}
Requires: hipsparse msgpack-cxx rocm-core rocm-smi-lib rocminfo roctracer rocr-runtime rocm-cmake boost
Requires: py3-joblib py3-PyYAML py3-msgpack py3-packaging rocm-llvm python3 comgr

%prep
%setup -q -n rocm-libraries-%{realversion}
%setup -q -n rocm-libraries

%build
CMAKE_ARGS=(
-B %{_builddir}/build
-S %{_builddir}/rocm-libraries-%{realversion}/projects/%{n}
-S %{_builddir}/rocm-libraries/projects/%{n}
-DCMAKE_CXX_COMPILER=${ROCM_LLVM_ROOT}/lib/llvm/bin/clang++
-DCMAKE_INSTALL_PREFIX=%{i}
-DCMAKE_PREFIX_PATH="%{cmake_prefix_path}"
Expand Down
10 changes: 5 additions & 5 deletions miopen.spec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## INCLUDE rocm-config
### RPM external miopen %{rocm_version}
Source0: https://github.com/ROCm/rocm-libraries/archive/refs/tags/%{rocm_version}.tar.gz
### RPM external miopen %{rocm_version_num}
Source0: %{rocm_libraries_source}
Source1: https://raw.githubusercontent.com/suruoxi/half/refs/heads/master/include/half.hpp
Requires: hip rocm-core rocm-cmake rocr-runtime rocminfo python3 roctracer sqlite hipblaslt hipblas rocblas rocrand bz2lib hipblas
Requires: json hipblas-common boost zstd google-test opencl rocm-llvm comgr

%prep
%setup -q -n rocm-libraries-%{realversion}
%setup -q -n rocm-libraries
cp %{_sourcedir}/half.hpp %{_builddir}

%build
Expand All @@ -15,7 +15,7 @@ cp %{_sourcedir}/half.hpp %{_builddir}/half-include/half/

CMAKE_ARGS=(
-B %{_builddir}/build
-S %{_builddir}/rocm-libraries-%{realversion}/projects/%{n}
-S %{_builddir}/rocm-libraries/projects/%{n}
-DCMAKE_CXX_COMPILER=${ROCM_LLVM_ROOT}/bin/amdclang++
-DCMAKE_INSTALL_PREFIX=%{i}
-DCMAKE_PREFIX_PATH="%{cmake_prefix_path}"
Expand All @@ -32,7 +32,7 @@ CMAKE_ARGS=(
-DHALF_INCLUDE_DIR=%{_builddir}/half-include
-DBUILD_TESTING=OFF
)
sed -i '827,830d' %{_builddir}/rocm-libraries-%{realversion}/projects/%{n}/CMakeLists.txt
sed -i '827,830d' %{_builddir}/rocm-libraries/projects/%{n}/CMakeLists.txt
cmake "${CMAKE_ARGS[@]}"

make -C %{_builddir}/build %{makeprocesses}
Expand Down
2 changes: 1 addition & 1 deletion pip/orjson.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requires: py3-maturin py3-puccinialin rust py3-tomli
BuildRequires: py3-maturin py3-puccinialin rust py3-tomli
%define PipPreBuild export CARGO_HOME=%{_tmppath}/cargo_home
3 changes: 2 additions & 1 deletion pip/pymongo.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Requires: py3-hatchling py3-dnspython rust py3-cargo py3-hatch-requirements-txt
BuildRequires: py3-hatchling py3-hatch-requirements-txt
Requires: py3-dnspython
%define PipPreBuild export CARGO_HOME=%{_tmppath}/cargo_home
12 changes: 9 additions & 3 deletions pip/torch-rocm.file
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## INCLUDE rocm-flags
Requires: rocm xz aotriton
Requires: xz aotriton hip comgr rocr-runtime amdsmi
Requires: rocrand miopen hiprand rocblas hipblas hipblas-common hipblaslt
Requires: hipfft hipsparse rocprim hipcub rocthrust hipsolver rocsolver hipsparselt
Requires: rocprofiler roctracer rccl rocm-core

%define pip_name torch
%define PipPreBuildPy \
Expand All @@ -10,8 +13,11 @@ Requires: rocm xz aotriton
export PYTHON_EXECUTABLE=$(which python3); \
export NUMPY_EXPERIMENTAL_DTYPE_API=1 \
export USE_ROCM=ON; \
export ROCM_PATH=${ROCM_ROOT}; \
export ROCM_SOURCE_DIR=${ROCM_ROOT}; \
export CMAKE_CXX_FLAGS="-I$ROCM_CORE_ROOT/include -I$HIPBLASLT_ROOT/include -I$HIPBLAS_COMMON_ROOT/include -I$ROCTRACER_ROOT/include"\
export HIP_DEVICE_LIB_PATH=${ROCM_LLVM_ROOT}/amdgcn/bitcode \
export HIP_DEVICE_LIB_PATH=${ROCM_LLVM_ROOT}/amdgcn/bitcode \
export ROCM_PATH=${HIP_ROOT}; \
export ROCM_SOURCE_DIR=${HIP_ROOT}; \
export AMDGPU_TARGETS="$(echo '%{rocm_archs}' | sed -e 's/,/ /g')"; \
export PYTORCH_ROCM_ARCH="%{rocm_archs}"; \
mkdir -p %{_builddir}/pkgconfig; \
Expand Down
3 changes: 2 additions & 1 deletion pip/uv.file
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Provides: libbz2.so.1()(64bit)
Requires: py3-maturin py3-puccinialin py3-cargo bz2lib
Requires: bz2lib
BuildRequires: py3-maturin py3-cargo
2 changes: 1 addition & 1 deletion rocfft.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## INCLUDE rocm-config
### RPM external rocfft %{rocm_version}
### RPM external rocfft %{rocm_version_num}
Requires: hiprand rocm-llvm
Requires: hip rocm-core rocm-llvm rocr-runtime rocm-cmake comgr
%define cmake_args -DROCFFT_BUILD_OFFLINE_TUNER=OFF -DROCFFT_KERNEL_CACHE_ENABLE=OFF
Expand Down
3 changes: 2 additions & 1 deletion rocm-llvm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

Source0: git+https://github.com/ROCm/llvm-project?obj=amd-staging/%{rocm_version}&export=%{n}-%{realversion}&output=/source.tar.gz
Source1: %{rocm_systems_source}
Requires: cmake ninja rocm-core rocm-cmake libxml2 zlib rocprofiler-register
BuildRequires: cmake
Requires: ninja rocm-core rocm-cmake libxml2 zlib rocprofiler-register

%prep
%setup -q -n %{n}-%{realversion}
Expand Down
4 changes: 2 additions & 2 deletions rocm-offload.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### RPM external rocm-offload 7.10

Source0: https://github.com/ROCm/llvm-project/archive/refs/tags/therock-7.10.tar.gz

Requires: rocm-core python3 cmake rocm-llvm rocr-runtime
BuildRequires: cmake
Requires: rocm-core python3 rocm-llvm rocr-runtime

%prep
%setup -q -n llvm-project-therock-%{realversion}
Expand Down
2 changes: 1 addition & 1 deletion rocprim.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external rocprim %{rocm_version}
### RPM external rocprim %{rocm_version_num}
Requires: rocm-core comgr
## INCLUDE rocm-libraries-build-new
3 changes: 2 additions & 1 deletion rocprofiler-compute.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## INCLUDE rocm-config
### RPM external rocprofiler-compute %{rocm_version_num}
Source: %{rocm_systems_source}
Requires: rocm-core rocm-llvm rocr-runtime python3 cmake rocm-cmake rocprofiler roctracer hip libxml2 rocm-rocprofiler-sdk
BuildRequires: cmake
Requires: rocm-core rocm-llvm rocr-runtime python3 rocm-cmake rocprofiler roctracer hip libxml2 rocm-rocprofiler-sdk
Requires: py3-astunparse py3-colorlover py3-kaleido py3-matplotlib
Requires: py3-numpy py3-pandas py3-pandas
Requires: py3-plotext py3-plotille py3-pymongo
Expand Down
3 changes: 2 additions & 1 deletion rocprofiler.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
### RPM external rocprofiler %{rocm_version_num}
Source: %{rocm_systems_source}
#Source1: https://github.com/google/perfetto/archive/eb5ef24c58d13cec289d733d03f0f3f0ed321b12.tar.gz
Requires: rocm-core rocr-runtime python3 rocm-cmake aqlprofile hip numactl libxml2 roctracer py3-lxml py3-barectf py3-PyYAML comgr
BuildRequires: py3-barectf py3-CppHeaderParser
Requires: rocm-core rocr-runtime python3 rocm-cmake aqlprofile hip numactl libxml2 roctracer py3-lxml py3-PyYAML comgr

%prep
%setup -q -n rocm-systems
Expand Down
2 changes: 1 addition & 1 deletion rocrand.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
Requires: comgr
### RPM external rocrand %{rocm_version}
### RPM external rocrand %{rocm_version_num}
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion rocsolver.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external rocsolver %{rocm_version}
### RPM external rocsolver %{rocm_version_num}
Requires: hip rocblas rocsparse fmt rocprim
## INCLUDE rocm-libraries-build-new
2 changes: 1 addition & 1 deletion rocsparse.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## INCLUDE rocm-config
### RPM external rocsparse %{rocm_version}
### RPM external rocsparse %{rocm_version_num}
## INCLUDE rocm-config
Source0: https://github.com/ROCm/rocSPARSE/archive/refs/tags/rocm-%{rocm_version_num}.tar.gz
Requires: rocprim rocblas
Expand Down
2 changes: 1 addition & 1 deletion rocthrust.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INCLUDE rocm-config
### RPM external rocthrust %{rocm_version}
### RPM external rocthrust %{rocm_version_num}
Requires: rocprim
## INCLUDE rocm-libraries-build-new
1 change: 1 addition & 0 deletions roctracer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
### RPM external roctracer %{rocm_version_num}
Source: %{rocm_systems_source}
Requires: rocr-runtime hip comgr
BuildRequires: py3-CppHeaderParser

%prep
%setup -q -n rocm-systems
Expand Down
5 changes: 5 additions & 0 deletions scram-tools.file/tools/py3-torch-rocm/pytorch-rocm-links.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<tool revision="2">
<client>
<environment name="ROCM_LIBDIR" default="$TOOL_BASE/lib"/>
</client>
</tool>