summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2023-02-11 18:43:46 +0800
committerMarek Szuba <marecki@gentoo.org>2023-02-24 16:49:51 +0000
commit523d7b2ee32d79b44796efa2c08f0b897c633801 (patch)
tree79ebdf80ee4d63f06c5e31833d6f38814030adfb /dev-util/Tensile/files
parentdev-util/Tensile: Fix create library step in Tensile command (diff)
downloadgentoo-523d7b2ee32d79b44796efa2c08f0b897c633801.tar.gz
gentoo-523d7b2ee32d79b44796efa2c08f0b897c633801.tar.bz2
gentoo-523d7b2ee32d79b44796efa2c08f0b897c633801.zip
dev-util/Tensile: add client USE to compile tensile_client
tensile_client is for running benchmarks. By default, Tensile contains a whole set of scripts to configure and compile tensile_client via cmake for very benchmark. This commit enables a use flag to compile and install this executable, so at runtime benchmark won't need to compile again. Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-util/Tensile/files')
-rw-r--r--dev-util/Tensile/files/0001-Detect-prebuilt-tensile_client-in-PATH.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-util/Tensile/files/0001-Detect-prebuilt-tensile_client-in-PATH.patch b/dev-util/Tensile/files/0001-Detect-prebuilt-tensile_client-in-PATH.patch
new file mode 100644
index 000000000000..116711db44fc
--- /dev/null
+++ b/dev-util/Tensile/files/0001-Detect-prebuilt-tensile_client-in-PATH.patch
@@ -0,0 +1,33 @@
+From 3c806ec52f46d0a1f770f524d1e4f0ffeb8809c2 Mon Sep 17 00:00:00 2001
+From: Yiyang Wu <xgreenlandforwyy@gmail.com>
+Date: Sat, 11 Feb 2023 17:48:08 +0800
+Subject: [PATCH] Detect prebuilt tensile_client in PATH
+
+---
+ Tensile/Tensile.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Tensile/Tensile.py b/Tensile/Tensile.py
+index 961ea88f..123f8a7a 100644
+--- a/Tensile/Tensile.py
++++ b/Tensile/Tensile.py
+@@ -38,6 +38,7 @@ from . import LibraryIO
+ from . import LibraryLogic
+ from . import __version__
+ from datetime import datetime
++from shutil import which
+
+
+ ###############################################################################
+@@ -127,7 +128,7 @@ def addCommonArguments(argParser):
+ action="store", help="select which library format to use")
+ argParser.add_argument("--client-build-path", default=None)
+ argParser.add_argument("--client-lock", default=None)
+- argParser.add_argument("--prebuilt-client", default=None)
++ argParser.add_argument("--prebuilt-client", default=which("tensile_client"))
+
+ argParser.add_argument("--global-parameters", nargs="+", type=splitExtraParameters, default=[])
+
+--
+2.39.1
+