SHA256
1
0
forked from ROCm/hipblaslt

1 Commits

Author SHA256 Message Date
96097bcb02 Use distro specific macros to hide some distribution differences.
On SLE-15 exclusively use python 3.6 This is since joblib is
not even available on PackageHub.
Improve tensile format handling - currently, YAML is not
supported by hipblaslt.

Signed-off-by: Egbert Eich <eich@suse.com>
2025-06-24 18:53:58 +02:00

View File

@@ -1,9 +1,8 @@
%{rocm_set_libpackage_name hipblaslt -s 0}
%{!?python_exec: %define python_exec python3}
%if 0%{?python_flavor:1}
%define rocm_python_bin %{expand:%{__%python_flavor}}
%else
%if 0%{!?suse_version:1}
%define python_exec python3
%define python_expand python3
%define rocm_python_bin python3
%endif
@@ -235,7 +234,7 @@ sed -i -e '/joblib/d' tensilelite/requirements.*
cd tensilelite
TL=$PWD
%{python_exec} setup.py install --root $TL
%python_exec setup.py install --root $TL
cd ..
# Should not have to do this
@@ -248,8 +247,13 @@ export TENSILE_ROCM_OFFLOAD_BUNDLER_PATH=${CLANG_PATH}/clang-offload-bundler
# Look for the just built tensilelite
export PATH=${TL}/%{_bindir}:$PATH
%{?python_expand} export PYTHONPATH=${TL}%{python3_sitelib}:$PYTHONPATH
%{?python_expand} export Tensile_DIR=${TL}%{python3_sitelib}/Tensile
%if 0%{?suse_version}
%{python_expand} export PYTHONPATH=${TL}%{python_sitelib}:$PYTHONPATH
%{python_expand} export Tensile_DIR=${TL}%{python_sitelib}/Tensile
%else
export PYTHONPATH=${TL}%{python3_sitelib}:$PYTHONPATH
export Tensile_DIR=${TL}%{python3_sitelib}/Tensile
%endif
export LLVM_DIR=%{rocmllvm_cmakedir}
# Uncomment and see if the path is sane
# TensileGetPath