1 |
commit: 18027275e55fc2a39d3ca393dff7b3fe195a98df |
2 |
Author: YiyangWu <xgreenlandforwyy <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 6 11:01:36 2021 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 13:29:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18027275 |
7 |
|
8 |
sci-libs/rocSPARSE: fix matrices dir for tests |
9 |
|
10 |
Fix the following issue: Tests requiring data were skipped because of wrong directory. |
11 |
|
12 |
Bug: https://github.com/ROCmSoftwarePlatform/rocSPARSE/issues/227 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/22806 |
14 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
15 |
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
16 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
17 |
|
18 |
sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild | 4 ++-- |
19 |
1 file changed, 2 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild b/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild |
22 |
index a196780e222..7c554093db9 100644 |
23 |
--- a/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild |
24 |
+++ b/sci-libs/rocSPARSE/rocSPARSE-4.3.0-r1.ebuild |
25 |
@@ -82,14 +82,14 @@ src_prepare() { |
26 |
# Test need download data from https://sparse.tamu.edu (or other mirror site), check MD5, unpack and convert them into csr format |
27 |
# This process is handled default by ${S}/cmake/ClientMatrices.cmake, but should be the responsibility of portage. |
28 |
if use test; then |
29 |
- mkdir -p "${BUILD_DIR}"/matrices |
30 |
+ mkdir -p "${BUILD_DIR}"/clients/matrices |
31 |
# compile and use the mtx2csr converter. Do not use any optimization flags, because it causes error! |
32 |
ebegin "$(tc-getCXX) deps/convert.cpp -o deps/convert" |
33 |
$(tc-getCXX) deps/convert.cpp -o deps/convert |
34 |
eend $? |
35 |
find "${WORKDIR}" -maxdepth 2 -regextype egrep -regex ".*/(.*)/\1\.mtx" -print0 | |
36 |
while IFS= read -r -d '' mtxfile; do |
37 |
- destination=${BUILD_DIR}/matrices/$(basename -s '.mtx' ${mtxfile}).csr |
38 |
+ destination=${BUILD_DIR}/clients/matrices/$(basename -s '.mtx' ${mtxfile}).csr |
39 |
ebegin "Converting ${mtxfile} to ${destination}" |
40 |
deps/convert ${mtxfile} ${destination} |
41 |
eend $? |