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
|
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sun, 9 Apr 2023 00:34:59 -0600
Subject: remove use of pip and virtualenv
The upstream project creates a virtualenv and uses pip to install the
Python dependencies during a build. In the Debian build, all the Python
dependencies are already provided by packages, so there's no need for
all that complexity.
When contributed upstream, this functionality was guarded behind the
cmake option -DBUILD_WITH_PIP=OFF. Tensile_ROOT can also be passed from
d/rules (if necessary) so this patch can be dropped with ROCm 5.7.
Forwarded: yes
Applied-Upstream: https://github.com/ROCmSoftwarePlatform/rocBLAS/commit/4b9b2478472c0475ca08961c19e57d8c39d6f4c7
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b03894e..ba573b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -220,7 +220,8 @@ if(NOT SKIP_LIBRARY)
message(STATUS "Adding ${VIRTUALENV_HOME_DIR} to CMAKE_PREFIX_PATH")
list(APPEND CMAKE_PREFIX_PATH ${VIRTUALENV_HOME_DIR})
endif()
- find_package(Tensile ${TENSILE_VERSION} EXACT REQUIRED HIP LLVM)
+ find_package(Tensile ${TENSILE_VERSION} EXACT REQUIRED HIP LLVM PATHS "${CMAKE_CURRENT_SOURCE_DIR}/tensile/Tensile/cmake")
+ set( Tensile_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/tensile/Tensile")
endif()
endif()
|