Skip to content

Commit a612e78

Browse files
author
Rajalakshmi Srinivasaraghavan
committed
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.
1 parent 7da799d commit a612e78

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kernel/power/cdot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

3030
#include "common.h"
3131
#if defined(POWER10)
32+
#pragma GCC optimize "O1"
3233
#include "cdot_microk_power10.c"
3334
#else
3435
#ifndef HAVE_KERNEL_8

kernel/power/zdot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3838

3939
#if defined(POWER8) || defined(POWER9) || defined(POWER10)
4040
#if defined(__VEC__) || defined(__ALTIVEC__)
41+
#pragma GCC optimize "O1"
4142
#include "zdot_microk_power8.c"
4243
#endif
4344
#endif

0 commit comments

Comments
 (0)