Skip to content

Commit 0fa261e

Browse files
committed
Provide support for short float complex on M1.
The root cause was the use of the type short float complex type in the #8007 PR mixed with the definition for this type generated during configure (_Float16 [2]). Replacing this typedef with a struct solves the issue. Thanks @kawashima-fj for the patch. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
1 parent 2c48deb commit 0fa261e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

opal/include/opal_config_bottom.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,14 @@ static inline uint16_t ntohs(uint16_t netvar) { return netvar; }
522522
#define restrict
523523
#endif
524524

525+
#ifdef HAVE_OPAL_SHORT_FLOAT_COMPLEX_T
526+
#undef opal_short_float_complex_t
527+
typedef struct {
528+
opal_short_float_t real;
529+
opal_short_float_t imag;
530+
} opal_short_float_complex_t;
531+
#endif
532+
525533
#else
526534

527535
/* For a similar reason to what is listed in opal_config_top.h, we

0 commit comments

Comments
 (0)