Compare commits
1 Commits
main
...
python-tes
| Author | SHA256 | Date | |
|---|---|---|---|
| 59b037a5f5 |
@@ -42,11 +42,6 @@
|
||||
%global hipblaslt_name hipblaslt
|
||||
%endif
|
||||
|
||||
%if 0%{!?suse_version:1}
|
||||
%define python_exec python3
|
||||
%define python_expand python3
|
||||
%endif
|
||||
|
||||
%global upstreamname hipBLASLt
|
||||
%global rocm_release 6.4
|
||||
%global rocm_patch 3
|
||||
@@ -140,17 +135,17 @@ BuildRequires: zlib-devel
|
||||
|
||||
# For tensilelite
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module joblib}
|
||||
BuildRequires: %{python_module msgpack}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python3-PyYAML
|
||||
BuildRequires: python3-joblib
|
||||
BuildRequires: python3-msgpack
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: msgpack-cxx-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
#BuildRequires: python-rpm-macros
|
||||
%global tensile_verbose 2
|
||||
BuildRequires: %{python_module dataclasses if %python-base < 3.11}
|
||||
BuildRequires: %{python_module distro}
|
||||
BuildRequires: %{python_module simplejson}
|
||||
BuildRequires: %{python_module ujson}
|
||||
BuildRequires: (python3-dataclasses if python3-base < 3.11)
|
||||
BuildRequires: python3-distro
|
||||
BuildRequires: python3-simplejson
|
||||
BuildRequires: python3-ujson
|
||||
%else # %suse_version
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(pyyaml)
|
||||
@@ -313,7 +308,7 @@ sed -i -e 's@lapack cblas@%blaslib@' clients/gtest/CMakeLists.txt
|
||||
cd tensilelite
|
||||
TL=$PWD
|
||||
|
||||
%python_exec setup.py install --root $TL
|
||||
python3 setup.py install --root $TL
|
||||
cd ..
|
||||
|
||||
# Should not have to do this
|
||||
@@ -327,8 +322,8 @@ export TENSILE_ROCM_OFFLOAD_BUNDLER_PATH=${CLANG_PATH}/clang-offload-bundler
|
||||
# Look for the just built tensilelite
|
||||
export PATH=${TL}/%{_bindir}:$PATH
|
||||
%if 0%{?suse_version}
|
||||
%{python_expand} export PYTHONPATH=${TL}%{python_sitelib}:$PYTHONPATH
|
||||
%{python_expand} export Tensile_DIR=${TL}%{python_sitelib}/Tensile
|
||||
export PYTHONPATH=${TL}%{python_sitelib}:$PYTHONPATH
|
||||
export Tensile_DIR=${TL}%{python_sitelib}/Tensile
|
||||
%else
|
||||
export PYTHONPATH=${TL}%{python3_sitelib}:$PYTHONPATH
|
||||
export Tensile_DIR=${TL}%{python3_sitelib}/Tensile
|
||||
|
||||
Reference in New Issue
Block a user