Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1615760 - openblas is built with -march=z13 while the distro is zEC12+
Summary: openblas is built with -march=z13 while the distro is zEC12+
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openblas
Version: rawhide
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Susi Lehtola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2018-08-14 08:03 UTC by Dan Horák
Modified: 2018-09-06 02:30 UTC (History)
2 users (show)

Fixed In Version: openblas-0.3.2-2.fc28 openblas-0.3.2-3.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-22 11:37:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2018-08-14 08:03:19 UTC
After the s390x builders moved to the new HW (z13 from being zEC12 originally) openblas is built with -march=z13, while the distro uses zEC12 as the base arch. It means apps using openblas will crash on Fedora supported HW. AFAIK the openblas base arch is a static choice for s390x (not selected during runtime), so we need to change that back and use the generic backend.

Version-Release number of selected component (if applicable):
openblas-0.3.2-1.fc29

Comment 1 Susi Lehtola 2018-08-14 21:16:29 UTC
The base arch is indeed a static choice in openblas for non-x86 architectures, but I didn't change that in the spec; something must have changed in the build instead.

The best solution would of course be to patch in dynamic runtime CPU detection in driver/others/dynamic.c - upstream is open to patches - but I don't have the necessary expertise.

Comment 2 Dan Horák 2018-08-14 21:29:30 UTC
It's the builders that changed, they were zEC12 before the F-29 mass-rebuild and they are z13 since the mass-rebuild. And when zEC12 was checked during the build, then the generic backend was selected, while with z13 the build picks the optimized one. I'll try to convince the build to do the generic variant, worst case by patching cpuid_zarch.c.

Runtime selection would be the best option :-) I'm subscribed to the upstream ticket.

Comment 3 Susi Lehtola 2018-08-14 21:34:35 UTC
Looks like whoever put in s390x support forgot to put in a corresponding TARGET line in the spec (see lines 364-390), so the fix is very straightforward. Go ahead and check one in, I'm going to bed...

Comment 4 Fedora Update System 2018-08-15 11:30:48 UTC
openblas-0.3.2-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-6771103e10

Comment 5 Fedora Update System 2018-08-15 11:31:01 UTC
openblas-0.3.2-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-47618adc74

Comment 6 Fedora Update System 2018-08-15 18:20:00 UTC
openblas-0.3.2-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-6771103e10

Comment 7 Fedora Update System 2018-08-15 20:11:09 UTC
openblas-0.3.2-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-47618adc74

Comment 8 Fedora Update System 2018-08-22 11:37:09 UTC
openblas-0.3.2-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2018-08-24 20:03:20 UTC
openblas-0.3.2-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8e55b36ecf

Comment 10 Fedora Update System 2018-08-25 19:59:01 UTC
openblas-0.3.2-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8e55b36ecf

Comment 11 Fedora Update System 2018-09-06 02:30:42 UTC
openblas-0.3.2-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.