summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyangWu <xgreenlandforwyy@gmail.com>2022-03-13 21:18:42 +0800
committerBenda Xu <heroxbd@gentoo.org>2022-03-20 15:33:49 +0800
commitdd65c43ed711ff1bb33d4bd6e705de5d9fa47528 (patch)
tree0387a116e096feaecb2df2a69358b1ce9a4ea377 /dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch
parentapp-containers/lxc: stabilize 4.0.12 on x86 (diff)
downloadgentoo-dd65c43ed711ff1bb33d4bd6e705de5d9fa47528.tar.gz
gentoo-dd65c43ed711ff1bb33d4bd6e705de5d9fa47528.tar.bz2
gentoo-dd65c43ed711ff1bb33d4bd6e705de5d9fa47528.zip
dev-util/Tensile: FHS and benchmark feature
The previous Tensile package installs non-python files in python site directory. This change move Config files to /usr/share. Various patches are applied for correcting paths. Also, enable gfx1031 target so people can run benchmark on navi22 GPUs. Closes: https://github.com/gentoo/gentoo/pull/24537 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch')
-rw-r--r--dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch b/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch
new file mode 100644
index 000000000000..6645efd72fb1
--- /dev/null
+++ b/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch
@@ -0,0 +1,21 @@
+Index: Tensile-rocm-4.3.0/Tensile/ClientExecutable.py
+===================================================================
+--- Tensile-rocm-4.3.0.orig/Tensile/ClientExecutable.py
++++ Tensile-rocm-4.3.0/Tensile/ClientExecutable.py
+@@ -36,6 +36,7 @@ class CMakeEnvironment:
+
+ args = ['cmake']
+ args += itertools.chain.from_iterable([ ['-D', '{}={}'.format(key, value)] for key,value in self.options.items()])
++ args += itertools.chain.from_iterable([ ['-G', 'Ninja'], [ '-D', 'CMAKE_EXPORT_COMPILE_COMMANDS=ON' ] ])
+ args += [self.sourceDir]
+
+ Common.print2(' '.join(args))
+@@ -43,7 +44,7 @@ class CMakeEnvironment:
+ subprocess.check_call(args, cwd=Common.ensurePath(self.buildDir))
+
+ def build(self):
+- args = ['make', '-j']
++ args = ['ninja']
+ Common.print2(' '.join(args))
+ with Common.ClientExecutionLock():
+ subprocess.check_call(args, cwd=self.buildDir)