[20.10 FEAT] Algebra lib optimizations - OpenBlas (0.3.10) + enable DYNAMIC_ARCH=1

Bug #1893653 reported by bugproxy
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
High
Skipper Bug Screeners
openblas (Ubuntu)
Fix Released
Undecided
Canonical Foundations Team

Bug Description

The OpenBlas library is the backend for many machine learning algorithms using the Numpy Python framework. The library has been enhanced to support z13 and partially z14 via BountySource. Measurements still show performance gaps compared to the maximum theoretical performance.

Addl. request:

Please enable "DYNAMIC_ARCH=1" for s390x to enable choosing the best performing
implementation at run-time (i.e., s390x should be added to
ENABLE_DYNAMIC_ARCHS). Current builds of openblas version 0.3.10+ds-3 for
groovy instead rely on generic floating-point instructions
(TARGET=ZARCH_GENERIC) and thus do not use the significant performance
potential of the SIMD instructions that were introduced with z13 and extended
with z14 (cf.
https://launchpadlibrarian.net/491360113/buildlog_ubuntu-groovy-s390x.openblas_0.3.10+ds-3_BUILDING.txt.gz)

While the mechanism for selecting the best implementation at run-time had some
deficits on s390x in the past, we have revised it in OpenBLAS 0.3.10 and
consider it the best choice for portable binaries.

Please note that there is a small bug in the s390-specific part of the Makefile
triggered with gcc-10 and DYNAMIC_ARCH=1, which has been fixed upstream in
June. The fix cleanly applies on top of 0.3.10 --
https://github.com/xianyi/OpenBLAS/pull/2669

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-187952 severity-high targetmilestone-inin2010
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → openblas (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
importance: Undecided → High
Changed in openblas (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → Canonical Foundations Team (canonical-foundations)
Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
information type: Private → Public
Changed in openblas (Ubuntu):
status: New → Confirmed
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openblas - 0.3.10+ds-3ubuntu1

---------------
openblas (0.3.10+ds-3ubuntu1) groovy; urgency=medium

  * Enable dynamic arch support on s390x. LP: #1893653

 -- Dimitri John Ledkov <email address hidden> Thu, 17 Sep 2020 15:37:04 +0100

Changed in openblas (Ubuntu):
status: Confirmed → Fix Released
Changed in ubuntu-z-systems:
status: Confirmed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2020-09-22 02:09 EDT-------
IBM Bugzilla status->closed, Fix Released with groovy

tags: added: fr-654
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2020-10-20 08:18 EDT-------
Please note that the package description does not yet reflect that OpenBLAS now dynamically switches to the best implementation on s390x, as well. To make that clear, I propose to update the description as follows:

All kernel will be included in the library and dynamically switched to the
- best architecture at run time (only on amd64, arm64, i386 and ppc64el).
+ best architecture at run time (only on amd64, arm64, i386, ppc64el and s390x).

Revision history for this message
Marius Hillenbrand (mhillen) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.