Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829128 - dev-libs/pocl-1.8-r1: system is znver2, but *.bc file only znver1
Summary: dev-libs/pocl-1.8-r1: system is znver2, but *.bc file only znver1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-14 00:02 UTC by Bogdan
Modified: 2022-01-26 19:35 UTC (History)
1 user (show)

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


Attachments
emerge --info pocl (emerge.info,12.98 KB, text/plain)
2021-12-14 00:04 UTC, Bogdan
Details
/etc/portage/make.conf (make.conf,12.31 KB, text/plain)
2021-12-14 00:04 UTC, Bogdan
Details
lscpu (lscpu.txt,2.65 KB, text/plain)
2021-12-14 00:05 UTC, Bogdan
Details
zcat /proc/config.gz (kernel.conf,226.59 KB, text/plain)
2021-12-14 00:07 UTC, Bogdan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2021-12-14 00:02:49 UTC
I have CPU: AMD Ryzen 4600H. This is znver2 architecture. But pocl package contains .bc file for znver1, not for znver2.

Reproducible: Always

Actual Results:  
LC_ALL=en ls -al /usr/share/pocl/*.bc
-rw-r--r-- 1 root root 3889744 Dec 13 19:51 /usr/share/pocl/kernel-nvptx64.bc
-rw-r--r-- 1 root root 6329164 Dec 13 19:51 /usr/share/pocl/kernel-x86_64-pc-linux-gnu-znver1.bc

Expected Results:  
LC_ALL=en ls -al /usr/share/pocl/*.bc
-rw-r--r-- 1 root root 3889744 Dec 13 19:51 /usr/share/pocl/kernel-nvptx64.bc
-rw-r--r-- 1 root root 6329164 Dec 13 19:51 /usr/share/pocl/kernel-x86_64-pc-linux-gnu-znver2.bc
Comment 1 Bogdan 2021-12-14 00:04:16 UTC
Created attachment 758837 [details]
emerge --info pocl
Comment 2 Bogdan 2021-12-14 00:04:48 UTC
Created attachment 758838 [details]
/etc/portage/make.conf
Comment 3 Bogdan 2021-12-14 00:05:51 UTC
Created attachment 758839 [details]
lscpu
Comment 4 Bogdan 2021-12-14 00:07:53 UTC
Created attachment 758840 [details]
zcat /proc/config.gz
Comment 5 Larry the Git Cow gentoo-dev 2022-01-03 07:41:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c127713269a116c187d54663e0523b9f79f11886

commit c127713269a116c187d54663e0523b9f79f11886
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-14 06:14:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-03 07:40:47 +0000

    dev-libs/pocl: use 'distro' option for built kernels
    
    We can't know what CPU the user will run the
    built package on (think of binpkgs) so let's
    use the 'distro' option which builds for
    most common SIMD instructions and chooses
    the most appropriate kernel it built at runtime.
    
    Closes: https://bugs.gentoo.org/829128
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/pocl/pocl-1.8-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Bogdan 2022-01-08 10:53:45 UTC
Why configurator detect "znver2" acrhitecture as "znver1" with "KERNELLIB_HOST_CPU_VARIANTS=native" option?

I think, that current solution - is quick way. But more correct way - resolve error in pocl configurator.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-08 22:55:11 UTC
(In reply to Bogdan from comment #6)
> Why configurator detect "znver2" acrhitecture as "znver1" with
> "KERNELLIB_HOST_CPU_VARIANTS=native" option?
> 
> I think, that current solution - is quick way. But more correct way -
> resolve error in pocl configurator.

See the commit message. Native would be wrong for binpkgs and such anyway.

Please report that issue upstream.