Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668864 - media-libs/ROCR-Runtime-1.9.9999::rocm failed (install phase): dolib failed
Summary: media-libs/ROCR-Runtime-1.9.9999::rocm failed (install phase): dolib failed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 650804
  Show dependency tree
 
Reported: 2018-10-17 11:31 UTC by Hajo
Modified: 2019-01-02 20:37 UTC (History)
1 user (show)

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


Attachments
emerge-info-ROCR-Runtime-1.9.9999 (emerge-info-ROCR-Runtime-1.9.9999,7.53 KB, text/plain)
2018-10-17 11:41 UTC, Hajo
Details
emerge-pqv-ROCR-Runtime-1.9.9999 (emerge-pqv-ROCR-Runtime-1.9.9999,50 bytes, text/plain)
2018-10-17 11:42 UTC, Hajo
Details
ROCR-Runtime-1.9.9999_temp_environment (ROCR-Runtime-1.9.9999_temp_environment,129.51 KB, text/plain)
2018-10-17 11:43 UTC, Hajo
Details
media-libs:ROCR-Runtime-1.9.9999:20181017-110404.log.gz (media-libs:ROCR-Runtime-1.9.9999:20181017-110404.log.gz,8.36 KB, application/gzip)
2018-10-17 11:46 UTC, Hajo
Details
2. media-libs:ROCm-OpenCL-Runtime-1.9.9999:20181017-182116.log.gz (media-libs:ROCm-OpenCL-Runtime-1.9.9999:20181017-182116.log.gz,247.44 KB, application/gzip)
2018-10-17 19:25 UTC, Hajo
Details
ls-la_usr_lib_hcc_9999 (ls-la_usr_lib_hcc_9999,52.22 KB, text/plain)
2018-10-20 18:43 UTC, Hajo
Details
clinfo-with-ocl-icd-without-errors (clinfo-with-ocl-icd-without-errors,8.95 KB, text/plain)
2018-10-20 18:44 UTC, Hajo
Details
clinfo-with-rocm-errors (clinfo-with-rocm-errors,16.86 KB, text/plain)
2018-10-20 18:45 UTC, Hajo
Details
rocminfo (rocminfo,6.62 KB, text/plain)
2018-10-20 19:17 UTC, Hajo
Details
rocm-smi_-a (rocm-smi_-a,3.07 KB, text/plain)
2018-10-20 19:18 UTC, Hajo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hajo 2018-10-17 11:31:45 UTC
(This belongs to Bug 650804 - ROC - Radeon Open Compute)

emerge of media-libs/ROCR Runtime 1.9.9999 fails:

>>> Install ROCR-Runtime-1.9.9999 into /var/tmp/portage/media-libs/ROCR-Runtime-1.9.9999/image/ category media-libs
!!! dolib: /var/tmp/portage/media-libs/ROCR-Runtime-1.9.9999/work/ROCR-Runtime-1.9.9999_build/libhsa-runtime64.so.1.9.0 does not exist
 * ERROR: media-libs/ROCR-Runtime-1.9.9999::rocm failed (install phase):
 *   dolib failed
 ... 
 
 * QA Notice: file does not exist:
 * 
 *      dolib: /var/tmp/portage/media-libs/ROCR-Runtime-1.9.9999/work/ROCR-Runtime-1.9.9999_build/libhsa-runtime64.so.1.9.0 does not exist


Reproducible: Always

Steps to Reproduce:
1.In a clean system with Layman in /etc/layman/overlays/ installed https://github.com/justxi/rocm/blob/master/repositories.xml

2. After a  emerge media-libs/ROCm-OpenCL-Runtime -av there was a "Digest verification failed:" See bug 650804
The error has been fixed (?) with:
ebuild  /var/lib/layman/rocm/media-libs/ROCR-Runtime/ROCR-Runtime-1.8.9999.ebuild digest

3. After a renewed emerge showed this current error.
Actual Results:  
The emerge error can not be solved here.

Expected Results:  
Error-free installation.

It would be nice if there was documentation for the installation.
Comment 1 Hajo 2018-10-17 11:41:37 UTC
Created attachment 551644 [details]
emerge-info-ROCR-Runtime-1.9.9999
Comment 2 Hajo 2018-10-17 11:42:31 UTC
Created attachment 551646 [details]
emerge-pqv-ROCR-Runtime-1.9.9999
Comment 3 Hajo 2018-10-17 11:43:39 UTC
Created attachment 551648 [details]
ROCR-Runtime-1.9.9999_temp_environment
Comment 4 Hajo 2018-10-17 11:46:46 UTC
Created attachment 551650 [details]
media-libs:ROCR-Runtime-1.9.9999:20181017-110404.log.gz
Comment 5 Hajo 2018-10-17 11:48:39 UTC
emerge --info
Portage 2.3.49 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r7, 4.18.14-gentoo x86_64)
=================================================================
System uname: Linux-4.18.14-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-gentoo-2.4.1
KiB Mem:    16418016 total,   9111172 free
KiB Swap:   16779260 total,  16779260 free
Timestamp of repository gentoo: Tue, 16 Oct 2018 20:30:01 +0000
Head commit of repository gentoo: a4d7c28167dee2ef835c1a5956b8adad2f312b16
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

localrepo
    location: /usr/local/portage
    masters: gentoo

rocm
    location: /var/lib/layman/rocm
    sync-type: laymansync
    sync-uri: https://github.com/justxi/rocm.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=znver1"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j15 -l14"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="52 X a52 aac aacplus aalib acl acpi activities alisp alsa amd64 apache2 app archive atmo avahi bazaar berkdb bluetooth bluez branding btpclient btrfs bzip2 cairo cdda cdparanoia cdr chromium clang classic cli colord connection-sharing conntrack contrib crypt cups cvs cxx cycles dbus declarative dri drm dts dvb dvbcsa dvbpsi dvd dvdarchive dvdr egl elfutils emboss emoji encode exif ext4 faad fam flac fonts fortran frei0r fuse gbm gcrypt gd gdbm gif git glamor gnuefi gnutls google googledrive gpg gphoto2 gpm graphviz grub gtk gtk3 gvfs handbook hddtemp hvm iconv icu iptables ipv4 ipv6 java javafx jce jpeg jpeg2k kde kdenlive kdesu kipi kvm kwallet lcms libkms libnotify libtirpc live lkrn lm_sensors logrotate lua lv2 lvm lz4 lzma lzo mad magic masquerade matroska mdadm mercurial mng mp3 mp4 mpeg mpeg2 mpeg3 mpg123 mtp multilib musepack mysql mysqli ncurses networkmanager nfconntrack nls npp nptl nsplugin ntfs numa ogg openal opencl opengl openimageio openmax openmp opensubdiv opus osmesa pam pango pcre pdf pdfimport phonon plasma png policykit postscript ppds pulseaudio qml qt5 qtmedia readline rtsp rubberband savedconfig scanner schroedinger script sdl seccomp semantic-desktop source speech spell sqlite ssl startup-notification subversion svg sync-plugin-portage systemd tci tcl tcpd theora threads thumbnail tidy tiff tk truetype udev udisks unicode update_drivedb upnp upower usb usbredir user-session vaapi vcdx vdpau vector-icons video virtualbox vorbis vpx vte vulkan wav wayland webchannel webengine webp widevine widgets wmf wxwidgets x264 x265 xa xattr xcb xcomposite xine xml xv xvid youtube zeroconf zip zip-encryption zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel moxie nios2 or1k ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 tricore unicore32 xtensa xtensaeb" QEMU_USER_TARGETS="x86_64 aarch64 alpha arm armeb cris hppa i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el nios2 or1k ppc ppc64 ppc64abi32 ppc64le s390x sh4 sh4eb sparc sparc32plus sparc64 tilegx" RUBY_TARGETS="ruby23" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 justXi 2018-10-17 17:09:48 UTC
I think the problem is related to the update of ROCm... the ebuild install the head of 1.9.x, the first time I tried this the library was 1.9.0. The Library was updated and now the version is 1.9.1. I updated the ebuild, it should work now.
Comment 7 Hajo 2018-10-17 19:25:47 UTC
Created attachment 551664 [details]
2. media-libs:ROCm-OpenCL-Runtime-1.9.9999:20181017-182116.log.gz
Comment 8 Hajo 2018-10-17 19:26:43 UTC
Thank you very much for your fast reply.

1. The digest error for 1.8.9999 is still there.

2. Also "dolib failed" is still there. But the compile time was longer.
The build-log media-libs: ROCm OpenCL Runtime 1.9.9999: 20181017-182116.log.gz
I have inserted above.
Comment 9 justXi 2018-10-18 06:44:49 UTC
I think "dev-cpp/gtest" is missing, I have to add that package to the dependency list. And the ebuild must fail, wenn the compile phase failes.
Comment 10 Hajo 2018-10-18 11:45:11 UTC
Thank you for your great work.

With "dev-cpp/gtest" the installation works well.

The digest error at 1.8.99 is still there. And the following two bugs appeared:


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-devel/hcc-9999-r2:9999::rocm  0 KiB
[ebuild   R   ~] media-libs/hsa-amd-aqlprofile-1.0.0::rocm  0 KiB
[ebuild   R   ~] media-libs/hsa-ext-rocr-1.1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/repo-1.12.37::gentoo  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R   ~] media-libs/ROCT-Thunk-Interface-9999::rocm  0 KiB
[ebuild   R   ~] sys-kernel/rocm-sources-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/Tensile-9999::rocm  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900 -gfx906" 0 KiB
[ebuild  N    ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] media-libs/ROCR-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocm-smi-9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocminfo-9999::rocm  0 KiB
[ebuild   R   ~] media-libs/ROCm-OpenCL-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocprofiler-1.9.9999::rocm  USE="-debug" 0 KiB

Total: 14 packages (2 new, 12 reinstalls), Size of downloads: 0 KiB

-------------------------------------

tux ~ # emerge sys-devel/hip -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/hip-1.9.9999::rocm
>>> Unpacking source...
 * Repository id: ROCm-Developer-Tools_HIP.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_ROCM_DEVELOPER_TOOLS_HIP
 *   EGIT_OVERRIDE_BRANCH_ROCM_DEVELOPER_TOOLS_HIP
 *   EGIT_OVERRIDE_COMMIT_ROCM_DEVELOPER_TOOLS_HIP
 *   EGIT_OVERRIDE_COMMIT_DATE_ROCM_DEVELOPER_TOOLS_HIP
 * 
 * Fetching https://github.com/ROCm-Developer-Tools/HIP.git ...
git fetch https://github.com/ROCm-Developer-Tools/HIP.git +refs/heads/roc-1.9.x:refs/heads/roc-1.9.x
git symbolic-ref refs/git-r3/sys-devel/hip/1.9/__main__ refs/heads/roc-1.9.x
 * Checking out https://github.com/ROCm-Developer-Tools/HIP.git to /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
git checkout --quiet roc-1.9.x
GIT update -->
   repository:               https://github.com/ROCm-Developer-Tools/HIP.git
   at the commit:            473fc17d0a546abebf9488e3fab53716f9c4b89d
>>> Source unpacked in /var/tmp/portage/sys-devel/hip-1.9.9999/work
>>> Preparing source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
 * Applying 1.9.9999-DisableTest.patch ...                                                                                                                                                                                                                                                                                                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HIP Platform: hcc
CMake Error at CMakeLists.txt:83 (message):
  Don't know where to find HCC.  Please specify abolute path using -DHCC_HOME


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sys-devel/hip-1.9.9999/work/build/CMakeFiles/CMakeOutput.log".
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
make: *** No targets specified and no makefile found.  Stop.
>>> Source compiled.
>>> Test phase [not enabled]: sys-devel/hip-1.9.9999

>>> Install hip-1.9.9999 into /var/tmp/portage/sys-devel/hip-1.9.9999/image/ category sys-devel
make -j15 -l14 DESTDIR=/var/tmp/portage/sys-devel/hip-1.9.9999/image/ install 
make: *** No rule to make target 'install'.  Stop.
 * ERROR: sys-devel/hip-1.9.9999::rocm failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/hip-1.9.9999::rocm'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/hip-1.9.9999::rocm'`.
 * The complete build log is located at '/var/log/portage/sys-devel:hip-1.9.9999:20181018-111251.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-devel/hip-1.9.9999/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/hip-1.9.9999/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/hip-1.9.9999/work/build'
 * S: '/var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999'

>>> Failed to emerge sys-devel/hip-1.9.9999, Log file:

>>>  '/var/log/portage/sys-devel:hip-1.9.9999:20181018-111251.log.gz'
tux ~ # 


-----------------------------------------------
tux ~ # emerge  sci-libs/rocBLAS -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900 -gfx906" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

!!! Digest verification failed:
!!! /var/lib/layman/rocm/sci-libs/rocBLAS/files/Tensile-setCurrentISA_gfx803.patch
!!! Reason: Filesize does not match recorded size
!!! Got: 450
!!! Expected: 434
Comment 11 Hajo 2018-10-18 11:46:35 UTC
(In reply to Marlo from comment #10)
> Thank you for your great work.
> 
> With "dev-cpp/gtest" the installation works well.
> 
> The digest error at 1.8.99 is still there. And the following two bugs
> appeared:
> 
> ---------------------------------
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R   ~] sys-devel/hcc-9999-r2:9999::rocm  0 KiB
> [ebuild   R   ~] media-libs/hsa-amd-aqlprofile-1.0.0::rocm  0 KiB
> [ebuild   R   ~] media-libs/hsa-ext-rocr-1.1.9::rocm  0 KiB
> [ebuild   R   ~] dev-util/repo-1.12.37::gentoo  PYTHON_TARGETS="python2_7" 0
> KiB
> [ebuild   R   ~] media-libs/ROCT-Thunk-Interface-9999::rocm  0 KiB
> [ebuild   R   ~] sys-kernel/rocm-sources-1.9.9999:1.9::rocm  0 KiB
> [ebuild   R   ~] dev-util/Tensile-9999::rocm  PYTHON_TARGETS="python2_7" 0
> KiB
> [ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900
> -gfx906" 0 KiB
> [ebuild  N    ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB
> [ebuild   R   ~] media-libs/ROCR-Runtime-1.9.9999::rocm  0 KiB
> [ebuild   R   ~] dev-util/rocm-smi-9999::rocm  0 KiB
> [ebuild   R   ~] dev-util/rocminfo-9999::rocm  0 KiB
> [ebuild   R   ~] media-libs/ROCm-OpenCL-Runtime-1.9.9999::rocm  0 KiB
> [ebuild   R   ~] dev-util/rocprofiler-1.9.9999::rocm  USE="-debug" 0 KiB
> 
> Total: 14 packages (2 new, 12 reinstalls), Size of downloads: 0 KiB
> 
> -------------------------------------
> 
> tux ~ # emerge sys-devel/hip -av
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N    ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB
> 
> Total: 1 package (1 new), Size of downloads: 0 KiB
> 
> Would you like to merge these packages? [Yes/No] y
> 
> >>> Verifying ebuild manifests
> 
> >>> Emerging (1 of 1) sys-devel/hip-1.9.9999::rocm
> >>> Unpacking source...
>  * Repository id: ROCm-Developer-Tools_HIP.git
>  * To override fetched repository properties, use:
>  *   EGIT_OVERRIDE_REPO_ROCM_DEVELOPER_TOOLS_HIP
>  *   EGIT_OVERRIDE_BRANCH_ROCM_DEVELOPER_TOOLS_HIP
>  *   EGIT_OVERRIDE_COMMIT_ROCM_DEVELOPER_TOOLS_HIP
>  *   EGIT_OVERRIDE_COMMIT_DATE_ROCM_DEVELOPER_TOOLS_HIP
>  * 
>  * Fetching https://github.com/ROCm-Developer-Tools/HIP.git ...
> git fetch https://github.com/ROCm-Developer-Tools/HIP.git
> +refs/heads/roc-1.9.x:refs/heads/roc-1.9.x
> git symbolic-ref refs/git-r3/sys-devel/hip/1.9/__main__ refs/heads/roc-1.9.x
>  * Checking out https://github.com/ROCm-Developer-Tools/HIP.git to
> /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
> git checkout --quiet roc-1.9.x
> GIT update -->
>    repository:               https://github.com/ROCm-Developer-Tools/HIP.git
>    at the commit:            473fc17d0a546abebf9488e3fab53716f9c4b89d
> >>> Source unpacked in /var/tmp/portage/sys-devel/hip-1.9.9999/work
> >>> Preparing source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
>  * Applying 1.9.9999-DisableTest.patch ...                                  
> [ ok ]
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
> -- The C compiler identification is GNU 7.3.0
> -- The CXX compiler identification is GNU 7.3.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- HIP Platform: hcc
> CMake Error at CMakeLists.txt:83 (message):
>   Don't know where to find HCC.  Please specify abolute path using -DHCC_HOME
> 
> 
> -- Configuring incomplete, errors occurred!
> See also
> "/var/tmp/portage/sys-devel/hip-1.9.9999/work/build/CMakeFiles/CMakeOutput.
> log".
> >>> Source configured.
> >>> Compiling source in /var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999 ...
> make: *** No targets specified and no makefile found.  Stop.
> >>> Source compiled.
> >>> Test phase [not enabled]: sys-devel/hip-1.9.9999
> 
> >>> Install hip-1.9.9999 into /var/tmp/portage/sys-devel/hip-1.9.9999/image/ category sys-devel
> make -j15 -l14 DESTDIR=/var/tmp/portage/sys-devel/hip-1.9.9999/image/
> install 
> make: *** No rule to make target 'install'.  Stop.
>  * ERROR: sys-devel/hip-1.9.9999::rocm failed (install phase):
>  *   emake failed
>  * 
>  * If you need support, post the output of `emerge --info
> '=sys-devel/hip-1.9.9999::rocm'`,
>  * the complete build log and the output of `emerge -pqv
> '=sys-devel/hip-1.9.9999::rocm'`.
>  * The complete build log is located at
> '/var/log/portage/sys-devel:hip-1.9.9999:20181018-111251.log.gz'.
>  * For convenience, a symlink to the build log is located at
> '/var/tmp/portage/sys-devel/hip-1.9.9999/temp/build.log.gz'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/sys-devel/hip-1.9.9999/temp/environment'.
>  * Working directory: '/var/tmp/portage/sys-devel/hip-1.9.9999/work/build'
>  * S: '/var/tmp/portage/sys-devel/hip-1.9.9999/work/hip-1.9.9999'
> 
> >>> Failed to emerge sys-devel/hip-1.9.9999, Log file:
> 
> >>>  '/var/log/portage/sys-devel:hip-1.9.9999:20181018-111251.log.gz'
> tux ~ # 
> 
> 
> -----------------------------------------------
> tux ~ # emerge  sci-libs/rocBLAS -av
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900
> -gfx906" 0 KiB
> 
> Total: 1 package (1 new), Size of downloads: 0 KiB
> 
> Would you like to merge these packages? [Yes/No] y
> 
> >>> Verifying ebuild manifests
> 
> !!! Digest verification failed:
> !!!
> /var/lib/layman/rocm/sci-libs/rocBLAS/files/Tensile-setCurrentISA_gfx803.
> patch
> !!! Reason: Filesize does not match recorded size
> !!! Got: 450
> !!! Expected: 434
Comment 12 Hajo 2018-10-18 11:56:09 UTC
ux ~ # eselect opencl list
Available OpenCL implementations:
  [1]   ocl-icd
  [2]   roc *


clinfo works with ocl-icd but not with roc.

Do you know what I'm doing wrong?

rocm-smi -a gives the same result in both settings.

tux ~ #  /opt/rocm/bin/rocm-smi -a


====================    ROCm System Management Interface    ====================
================================================================================
GPU[0]          : GPU ID: 0x67ff
================================================================================
================================================================================
GPU[0]          : Temperature: 44.0c
================================================================================
================================================================================
GPU[0]          : GPU Clock Level: 7 (1196Mhz)
GPU[0]          : GPU Memory Clock Level: 2 (1750Mhz)
================================================================================
================================================================================
GPU[0]          : Fan Level: 81 (31.76)%
================================================================================
================================================================================
GPU[0]          : Current PowerPlay Level: auto
================================================================================
================================================================================
GPU[0]          : Current GPU OverDrive value: 0%
================================================================================
================================================================================
GPU[0]          : 
NUM        MODE_NAME     SCLK_UP_HYST   SCLK_DOWN_HYST SCLK_ACTIVE_LEVEL     MCLK_UP_HYST   MCLK_DOWN_HYST MCLK_ACTIVE_LEVEL
  0   3D_FULL_SCREEN:        0              100               30                0              100               10
  1     POWER_SAVING:       10                0               30                -                -                -
  2            VIDEO:        -                -                -               10               16               31
  3               VR:        0               11               50                0              100               10
  4        COMPUTE *:        0                5               30                0              100               10
  5           CUSTOM:        -                -                -                -                -                -
================================================================================
================================================================================
GPU[0]          : Average GPU Power: 21.117 W
================================================================================
================================================================================
GPU[0]          : Supported GPU clock frequencies on GPU0
GPU[0]          : 0: 214Mhz 
GPU[0]          : 1: 387Mhz 
GPU[0]          : 2: 843Mhz 
GPU[0]          : 3: 1011Mhz 
GPU[0]          : 4: 1080Mhz 
GPU[0]          : 5: 1126Mhz 
GPU[0]          : 6: 1168Mhz 
GPU[0]          : 7: 1196Mhz *
GPU[0]          : 
GPU[0]          : Supported GPU Memory clock frequencies on GPU0
GPU[0]          : 0: 300Mhz 
GPU[0]          : 1: 625Mhz 
GPU[0]          : 2: 1750Mhz *
GPU[0]          : 
================================================================================
====================           End of ROCm SMI Log          ====================
Comment 13 justXi 2018-10-18 11:59:13 UTC

I will check the HCC home problem in the evening.

At least the rocblas ebuild is totaly experimental, it installs, but the library is not working. I can use rocBLAS with an example when I manually build the library. I am currenlty trying to investigate, why the ebuild gives (for me) a non working library.

If you need installation hints, please go to "https://github.com/RadeonOpenCompute/ROCm" this is the official site from AMD. 

But please report all problems you have with the installation, this gives me the chance to make the ebuilds more robust.

Thanks for your reply.
Comment 14 justXi 2018-10-19 12:20:57 UTC
To your problem with the OpenCL library... did you set the environment variable?
Have look to the ebuild or the messages at the of the installation of the ROCm OpenCL library.
Comment 15 justXi 2018-10-20 17:23:01 UTC
Regarding "sys-devel/hip-1.9.9999::rocm", can you please check if "hcc" is installed? Please check "/usr/lib/hcc/".
Comment 16 Hajo 2018-10-20 18:43:37 UTC
Created attachment 551980 [details]
ls-la_usr_lib_hcc_9999
Comment 17 Hajo 2018-10-20 18:44:25 UTC
Created attachment 551982 [details]
clinfo-with-ocl-icd-without-errors
Comment 18 Hajo 2018-10-20 18:45:06 UTC
Created attachment 551984 [details]
clinfo-with-rocm-errors
Comment 19 Hajo 2018-10-20 18:50:03 UTC
In the meantime, due to the limitation of 32GB, I had changed PORTAGE_TMPDIR = "/ var / tmp" to new PORTAGE_TMPDIR = "/ var / portagetmp". On a
Hard disk partition. However, strange errors occurred while compiling ROCm OpenCL Runtime 1.9.9999.
So I had to reset everything. That took time.

-------------------------------------------------------

This is the stand:
@tux ~ $ uname -a
Linux tux 4.18.15-gentoo #1 SMP Sat Oct 20 14:36:59 CEST 2018 x86_64 AMD Ryzen 5 1600 Six-Core Processor AuthenticAMD GNU/Linux

emerge sys-kernel/rocm-sources dev-util/repo dev-util/rocm-smi media-libs/ROCT-Thunk-Interface dev-util/rocminfo 
       media-libs/ROCR-Runtime media-libs/ROCm-OpenCL-Runtime  dev-util/Tensile sci-libs/rocBLAS media-libs/hsa-ext-rocr
       dev-util/rocprofiler sys-devel/hcc media-libs/hsa-amd-aqlprofile sys-devel/hip -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-devel/hcc-9999-r2:9999::rocm  0 KiB
[ebuild   R   ~] media-libs/hsa-amd-aqlprofile-1.0.0::rocm  0 KiB
[ebuild   R   ~] media-libs/hsa-ext-rocr-1.1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/repo-1.12.37::gentoo  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R   ~] media-libs/ROCT-Thunk-Interface-9999::rocm  0 KiB
[ebuild  N    ~] sys-kernel/rocm-sources-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/Tensile-9999::rocm  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900 -gfx906" 0 KiB
[ebuild  N    ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] media-libs/ROCR-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocm-smi-9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocminfo-9999::rocm  0 KiB
[ebuild   R   ~] media-libs/ROCm-OpenCL-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocprofiler-1.9.9999::rocm  USE="-debug" 0 KiB

Total: 14 packages (3 new, 11 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
-------------------------------------------------------


The contents of the directory "/usr/lib/hcc/" are in the attachment above: ls-la_usr_lib_hcc_9999


-------------------------------------------------------

The environment variables
#env 
...
LD_LIBRARY_PATH=/opt/rocm/rocprofiler/lib:/opt/rocm/opencl/lib/x86_64:/opt/rocm/hsa/lib:
...
OPENGL_PROFILE=xorg-x11
...
OCL_ICD_VENDORS=amdocl64.icd
...
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/7/bin:
 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:
 /opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin/x86_64
...

-------------------------------------------------------

 # dmesg | grep amdgpu
[    5.806375] [drm] amdgpu kernel modesetting enabled.
[    5.811890] amdgpu 0000:0b:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
[    5.811941] amdgpu 0000:0b:00.0: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[    5.811943] amdgpu 0000:0b:00.0: GTT: 256M 0x0000000000000000 - 0x000000000FFFFFFF
[    5.812062] [drm] amdgpu: 4096M of VRAM memory ready
[    5.812064] [drm] amdgpu: 4096M of GTT memory ready.
[    6.084980] fbcon: amdgpudrmfb (fb0) is primary device
[    6.159355] amdgpu 0000:0b:00.0: fb0: amdgpudrmfb frame buffer device
[    6.165908] [drm] Initialized amdgpu 3.26.0 20150101 for 0000:0b:00.0 on minor 0

-------------------------------------------------------

 # dmesg | grep drm
[    5.806375] [drm] amdgpu kernel modesetting enabled.
[    5.811590] [drm] initializing kernel modesetting (POLARIS11 0x1002:0x67FF 0x1462:0x8A91 0xCF).
[    5.811608] [drm] register mmio base: 0xFE900000
[    5.811609] [drm] register mmio size: 262144
[    5.811616] [drm] probing gen 2 caps for device 1022:1453 = 733903/e
[    5.811618] [drm] probing mlw for device 1022:1453 = 733903
[    5.811620] [drm] add ip block number 0 <vi_common>
[    5.811621] [drm] add ip block number 1 <gmc_v8_0>
[    5.811622] [drm] add ip block number 2 <tonga_ih>
[    5.811624] [drm] add ip block number 3 <powerplay>
[    5.811625] [drm] add ip block number 4 <dm>
[    5.811626] [drm] add ip block number 5 <gfx_v8_0>
[    5.811627] [drm] add ip block number 6 <sdma_v3_0>
[    5.811628] [drm] add ip block number 7 <uvd_v6_0>
[    5.811629] [drm] add ip block number 8 <vce_v3_0>
[    5.811641] [drm] UVD is enabled in VM mode
[    5.811642] [drm] UVD ENC is enabled in VM mode
[    5.811644] [drm] VCE enabled in VM mode
[    5.811930] [drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[    5.811948] [drm] Detected VRAM RAM=4096M, BAR=256M
[    5.811950] [drm] RAM width 128bits GDDR5
[    5.812062] [drm] amdgpu: 4096M of VRAM memory ready
[    5.812064] [drm] amdgpu: 4096M of GTT memory ready.
[    5.812071] [drm] GART: num cpu pages 65536, num gpu pages 65536
[    5.812252] [drm] PCIE GART of 256M enabled (table at 0x000000F401FA4000).
[    5.813915] [drm] Chained IB support enabled!
[    5.818833] [drm] Found UVD firmware Version: 1.130 Family ID: 16
[    5.819677] [drm] Found VCE firmware Version: 53.26 Binary ID: 3
[    5.897859] [drm] DM_PPLIB: values for Engine clock
[    5.897862] [drm] DM_PPLIB:   21400
[    5.897863] [drm] DM_PPLIB:   38700
[    5.897864] [drm] DM_PPLIB:   84300
[    5.897865] [drm] DM_PPLIB:   101100
[    5.897865] [drm] DM_PPLIB:   108000
[    5.897866] [drm] DM_PPLIB:   112600
[    5.897867] [drm] DM_PPLIB:   116800
[    5.897868] [drm] DM_PPLIB:   119600
[    5.897869] [drm] DM_PPLIB: Validation clocks:
[    5.897870] [drm] DM_PPLIB:    engine_max_clock: 119600
[    5.897871] [drm] DM_PPLIB:    memory_max_clock: 175000
[    5.897871] [drm] DM_PPLIB:    level           : 8
[    5.897873] [drm] DM_PPLIB: values for Memory clock
[    5.897874] [drm] DM_PPLIB:   30000
[    5.897874] [drm] DM_PPLIB:   62500
[    5.897875] [drm] DM_PPLIB:   175000
[    5.897876] [drm] DM_PPLIB: Validation clocks:
[    5.897877] [drm] DM_PPLIB:    engine_max_clock: 119600
[    5.897878] [drm] DM_PPLIB:    memory_max_clock: 175000
[    5.897878] [drm] DM_PPLIB:    level           : 8
[    5.904074] [drm] Display Core initialized with v3.1.44!
[    5.944959] [drm] SADs count is: -2, don't need to read it
[    5.944978] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    5.944979] [drm] Driver supports precise vblank timestamp query.
[    5.977070] [drm] UVD and UVD ENC initialized successfully.
[    6.078022] [drm] VCE initialized successfully.
[    6.084897] [drm] fb mappable at 0xE24CC000
[    6.084900] [drm] vram apper at 0xE0000000
[    6.084902] [drm] size 33177600
[    6.084904] [drm] fb depth is 24
[    6.084906] [drm]    pitch is 15360
[    6.084980] fbcon: amdgpudrmfb (fb0) is primary device
[    6.159355] amdgpu 0000:0b:00.0: fb0: amdgpudrmfb frame buffer device
[    6.165908] [drm] Initialized amdgpu 3.26.0 20150101 for 0000:0b:00.0 on minor 0
#
-------------------------------------------------------


I have two questions:

1. I still have amdgpu-pro-18.20-606296 installed. Is that OK?

2. Do I have to change anything on the kernel?
Comment 20 Hajo 2018-10-20 18:54:44 UTC
The results of clinfo are included as an attachment above. I'm not sure if ROCm works.
Comment 21 Hajo 2018-10-20 19:17:51 UTC
Created attachment 552002 [details]
rocminfo
Comment 22 Hajo 2018-10-20 19:18:25 UTC
Created attachment 552004 [details]
rocm-smi_-a
Comment 23 justXi 2018-10-20 20:44:12 UTC
The problem, that hcc is not found is due to the fact, that you have installed hcc-9999, please install hcc-1.9.9999 that should fix that error. 

rocminfo seem to report expected results.

I use kernel 4.18.8 with amd gpu from that kernel. I did not use amdgpu-pro.
Comment 24 justXi 2018-10-20 20:46:34 UTC
Is there a OpenCL library installed with amdgpu-pro?
You could set this library and compare the output from clinfo to check if the ROC OpenCL is working.
Comment 25 Hajo 2018-10-20 21:32:11 UTC
These files are shipped with amdgpu-pro-opencl:

>>> Installing (1 of 1) dev-libs/amdgpu-pro-opencl-18.20.606296::gentoo
 * checking 3 files for package collisions
>>> Merging dev-libs/amdgpu-pro-opencl-18.20.606296 to /
--- /etc/
--- /etc/OpenCL/
--- /etc/OpenCL/vendors/
>>> /etc/OpenCL/vendors/amdgpu-pro.icd
--- /opt/
--- /opt/amdgpu/
--- /opt/amdgpu/lib64/
>>> /opt/amdgpu/lib64/libamdocl12cl64.so
>>> /opt/amdgpu/lib64/libamdocl-orca64.so
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /opt/amdgpu/lib64/libamdocl12cl64.so
--- replaced obj /opt/amdgpu/lib64/libamdocl-orca64.so
--- replaced dir /opt/amdgpu/lib64
--- replaced dir /opt/amdgpu
--- replaced dir /opt
--- replaced obj /etc/OpenCL/vendors/amdgpu-pro.icd
--- replaced dir /etc/OpenCL/vendors
--- replaced dir /etc/OpenCL
--- replaced dir /etc
>>> Original instance of package unmerged safely.
Switching to roc OpenCL interface... done
>>> dev-libs/amdgpu-pro-opencl-18.20.606296 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

-------------------------------------------

Compiling sys-devel/hcc-1.9.9999:1.9::rocm seems to take a long time.
Comment 26 justXi 2018-10-21 09:00:47 UTC
If you have unmerged the "amdgpu-pro" package and use e.g. gentoo-sources-4.18.8 the ROC stuff should use only the ROC OpenCL library.
Comment 27 Hajo 2018-10-21 12:28:15 UTC
This is the final result:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] media-libs/hsa-amd-aqlprofile-1.0.0::rocm  0 KiB
[ebuild   R   ~] media-libs/hsa-ext-rocr-1.1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/repo-1.12.37::gentoo  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R   ~] media-libs/ROCT-Thunk-Interface-9999::rocm  0 KiB
[ebuild   R   ~] sys-kernel/rocm-sources-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/Tensile-9999::rocm  PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900 -gfx906" 0 KiB
[ebuild   R   ~] media-libs/ROCR-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] sys-devel/hcc-1.9.9999:1.9::rocm  0 KiB
[ebuild   R   ~] dev-util/rocm-smi-9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocminfo-9999::rocm  0 KiB
[ebuild   R   ~] media-libs/ROCm-OpenCL-Runtime-1.9.9999::rocm  0 KiB
[ebuild   R   ~] dev-util/rocprofiler-1.9.9999::rocm  USE="-debug" 0 KiB
[ebuild   R   ~] sys-devel/hip-1.9.9999:1.9::rocm  0 KiB

Total: 14 packages (1 new, 13 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] n

Quitting.

tux ~ # emerge sci-libs/rocBLAS -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] sci-libs/rocBLAS-9999::rocm  USE="gfx803 -debug -gfx900 -gfx906" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

!!! Digest verification failed:
!!! /var/lib/layman/rocm/sci-libs/rocBLAS/files/Tensile-setCurrentISA_gfx803.patch
!!! Reason: Filesize does not match recorded size
!!! Got: 450
!!! Expected: 434

-------------------------------------------------------

Although it is no longer necessary with version 1.9, I have installed the kernel with the ubuntu patches out of interest.
The .config for the rocm-sources was created with the following command:
Make rock-rel_defconfig
as recommended here: https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.8.x#installing-and-configuring-the-kernel

uname -a
Linux tux 4.15.0-kfd + # 1 SMP Sat 20.10. 22:42:44 CEST 2018 x86_64 AMD Ryzen 5 1600 Six-core processor AuthenticAMD GNU / Linux

---------------------------------------------------------

As you suggested, amdgpu-pro has been uninstalled.

---------------------------------------------------------


In conclusion, I can only say that the "./HelloWorld" test works well.

Thank you for your efforts and your guide through the installation.
Comment 28 justXi 2018-10-21 13:14:50 UTC
I am happy about your successfull installation.

I change some ebuilds, mainly dependencies (look at the repository).
Rebuilding "rodBLAS" is necessary.

Thanks for you feedback.


So this bug can be closed?
Comment 29 Hajo 2018-10-21 13:31:04 UTC
Thanks again,

and yes, the bug can be closed successfully.
Comment 30 Craig Andrews gentoo-dev 2019-01-02 20:37:31 UTC
media-libs/ROCR-Runtime is not in Gentoo.

Issues with packages in overlays should not be reported to bugs.gentoo.org.