Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768474 - [science overlay] sci-libs/rocBLAS-4.0.0-r1: Tensile_ROOT not found when find_package(Tensile) from cmake
Summary: [science overlay] sci-libs/rocBLAS-4.0.0-r1: Tensile_ROOT not found when find...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-03 10:25 UTC by Yiyang Wu
Modified: 2021-02-06 16:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.log,6.09 KB, text/plain)
2021-02-03 10:25 UTC, Yiyang Wu
Details
build.log of rocBLAS (build.log,5.76 KB, text/plain)
2021-02-03 10:26 UTC, Yiyang Wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yiyang Wu 2021-02-03 10:25:04 UTC
Created attachment 685614 [details]
emerge --info output

Emerging sci-libs/rocBLAS::science fail at configuration phase: 


CMake Error at /opt/gentoo/usr/lib64/cmake/Tensile/TensileConfig.cmake:65 (add_subdirectory):
  add_subdirectory given source "/Source" which is not an existing directory.
Call Stack (most recent call first):
  CMakeLists.txt:211 (find_package)


CMake Error at /opt/gentoo/usr/lib64/cmake/Tensile/TensileConfig.cmake:66 (include):
  include could not find load file:

    /Source/TensileCreateLibrary.cmake
Call Stack (most recent call first):
  CMakeLists.txt:211 (find_package)


-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Success
-- Using AMDGPU_TARGETS: gfx803gfx900gfx906gfx908
-- ROCBLAS_GPUS=gfx803;gfx900;gfx906;gfx908
CMake Error at library/src/CMakeLists.txt:55 (TensileCreateLibraryCmake):
  Unknown CMake command "TensileCreateLibraryCmake".


-- Configuring incomplete, errors occurred!


TensileConfig.cmake cannot find Tensile_ROOT correctly, and result in cmake configuration failure. It needs fixing.

Also, Tensile has many auxilary files(yaml, sources and headers), which should placed in /usr/share or /usr/lib rather than /usr/lib/python3.?/site-packages/Tensile
Comment 1 Yiyang Wu 2021-02-03 10:26:53 UTC
Created attachment 685617 [details]
build.log of rocBLAS
Comment 2 Benda Xu gentoo-dev 2021-02-06 01:42:20 UTC
Tensile installs source code to be compiled with rocBLAS.  The easiest way forward is to compile rocBLAS and Tensile in one package, which means Tensile will be removed.  It works as long as no other package depends on Tensile.
Comment 3 Larry the Git Cow gentoo-dev 2021-02-06 16:19:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sci.git/commit/?id=53da9141ac01271e8abb862025df966e852d68a4

commit 53da9141ac01271e8abb862025df966e852d68a4
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2021-02-06 16:15:07 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2021-02-06 16:19:49 +0000

    dev-util/Tensile: move to standard directories.
    
    Let cmake to be able to locate Tensile.
    
    Move source code out of the python site-packages tree.
    
    Reported-by: Yiyang Wu <xgreenlandforwyy@gmail.com>, Alexey Chernov
    Closes: https://bugs.gentoo.org/768474
    Package-Manager: Portage-3.0.12, Repoman-3.0.1
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 dev-util/Tensile/Tensile-4.0.0-r1.ebuild           | 62 ++++++++++++++++++++++
 dev-util/Tensile/Tensile-4.0.0.ebuild              | 37 +++++++++++--
 dev-util/Tensile/files/Tensile-4.0.0-cmake.patch   | 38 +++++++++++++
 .../files/Tensile-4.0.0-locate-commands.patch      | 62 ++++++++++++++++++++++
 .../files/Tensile-4.0.0-output-currentISA.patch    | 22 ++++++++
 .../files/Tensile-4.0.0-setup.py-cmake.patch       | 13 +++++
 6 files changed, 231 insertions(+), 3 deletions(-)