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
Created attachment 758837 [details] emerge --info pocl
Created attachment 758838 [details] /etc/portage/make.conf
Created attachment 758839 [details] lscpu
Created attachment 758840 [details] zcat /proc/config.gz
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(-)
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.
(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.