Browse Source

POWER: Fix complex dot function failures

There are some test failures in complex dot functions when compiling with gcc12.
The machine constraints used now do not update all the four elements in the
expected result array. Fixing this with a reduced level of optimization.
This is not changing any performance numbers but will be converted to C code in future.
tags/v0.3.21
Rajalakshmi Srinivasaraghavan 3 years ago
parent
commit
a612e78a97
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      kernel/power/cdot.c
  2. +1
    -0
      kernel/power/zdot.c

+ 1
- 0
kernel/power/cdot.c View File

@@ -29,6 +29,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "common.h"
#if defined(POWER10)
#pragma GCC optimize "O1"
#include "cdot_microk_power10.c"
#else
#ifndef HAVE_KERNEL_8


+ 1
- 0
kernel/power/zdot.c View File

@@ -38,6 +38,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#if defined(POWER8) || defined(POWER9) || defined(POWER10)
#if defined(__VEC__) || defined(__ALTIVEC__)
#pragma GCC optimize "O1"
#include "zdot_microk_power8.c"
#endif
#endif


Loading…
Cancel
Save