Skip to content

Commit

Permalink
POWER: Fix issues in zscal to address lapack failures
Browse files Browse the repository at this point in the history
This patch fixes following lapack failures with clang compiler on POWER.
zed.out: ZVX:   18 out of  5190 tests failed to pass the threshold
zgd.out: ZGV drivers:     25 out of   1092 tests failed to pass the threshold
zgd.out: ZGV drivers:      6 out of   1092 tests failed to pass the threshold
  • Loading branch information
Rajalakshmi Srinivasaraghavan committed May 22, 2024
1 parent 700ea74 commit e112191
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/power/zscal.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma GCC optimize "O1"

#if defined(__clang__)
#pragma clang fp contract(off)
#endif

#if defined(__VEC__) || defined(__ALTIVEC__)
#if defined(POWER8) || defined(POWER9)
#if defined(DOUBLE)
Expand Down

0 comments on commit e112191

Please sign in to comment.