Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919750 - sci-libs/clblast is not tuned in the build process even if package name claims to be "tuned" blas
Summary: sci-libs/clblast is not tuned in the build process even if package name claim...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-12 07:46 UTC by Thomas Haschka
Modified: 2023-12-13 19:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Haschka 2023-12-12 07:46:01 UTC
In order to tune CLBlast, the build has to run tuners and then using the results patch the code. The build process for tuned CLBlast is outlined in:
 
https://github.com/CNugteren/CLBlast/blob/master/doc/tuning.md

In order to build a "tuned" version of CLBLast for the underlying OpenCL architecture the CLBlast has to be build as follows:

mkdir build
cd build
cmake -DTUNERS=ON ..
make
make alltuners
python ../scripts/database/database.py . ..
make

Tuning like this can take a long time, especially on low powered machines. It further requires a stable cpu / gpu frequency if possible, as thermal throtteling / turboing might lead to undisired results. As such it would be nice if tuning can be enabled using a "USE" flag. 

Anyways there should be a way to build the tuned version, especially as it is advertised as "tuned" blas, which in the current build-process it is not. 

Reproducible: Always

Steps to Reproduce:
1. emerge -v sci-libs/clblast
Actual Results:  
Builds the untuned version of clblast

Expected Results:  
should build or at least offer a possibility to build the tuned version of clblast. 

Portage 3.0.51 (python 3.11.6-final-0, unavailable, gcc-13, glibc-2.37-r7, 6.5.5-gentoo x86_64)
=================================================================
System uname: Linux-6.5.5-gentoo-x86_64-Intel-R-_Core-TM-_m3-8100Y_CPU_@_1.10GHz-with-glibc2.37
KiB Mem:     8003836 total,   5231652 free
KiB Swap:    4194288 total,   4194288 free
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
dev-lang/python:          3.11.6::gentoo, 3.12.0_p1::gentoo
sys-devel/autoconf:       2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:       1.16.5-r1::gentoo
sys-devel/binutils:       2.40-r9::gentoo
sys-devel/libtool:        2.4.7-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
Repositories:

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

ACCEPT_LICENSE="intel-ucode linux-fw-redistributable no-source-code swiss-prot vmd STRIDE SURF Snes9x ms-teams-pre unRAR julius"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac alsa bidi dbus flac fontconfig freetype gif heif ipv6 jpeg lcms mp4 ogg opengl png speex svg theora threads tiff truetype vaapi vorbis vpx webp x264 x265 xft"
Unset:  ACCEPT_KEYWORDS, EMERGE_DEFAULT_OPTS, ENV_UNSET, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND