Skip to content

Commit 2f6a673

Browse files
authored
Add target redirects for building on Apple hardware
1 parent 525070f commit 2f6a673

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

driver/others/dynamic_arm64.c

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,39 @@ extern gotoblas_t gotoblas_A64FX;
151151
#else
152152
#define gotoblas_A64FX gotoblas_ARMV8
153153
#endif
154+
154155
#else //not a user-specified dynamic_list
156+
157+
#ifdef OS_DARWIN
158+
#define gotoblas_CORTEXA55 gotoblas_ARMV8
159+
#else
155160
extern gotoblas_t gotoblas_CORTEXA53;
161+
#endif
156162
#define gotoblas_CORTEXA55 gotoblas_CORTEXA53
163+
#ifdef OS_DARWIN
164+
#define gotoblas_CORTEXA57 gotoblas_ARMV8
165+
#else
157166
extern gotoblas_t gotoblas_CORTEXA57;
167+
#endif
158168
#define gotoblas_CORTEXA72 gotoblas_CORTEXA57
159169
#define gotoblas_CORTEXA73 gotoblas_CORTEXA57
160170
#define gotoblas_FALKOR gotoblas_CORTEXA57
171+
#ifdef OS_DARWIN
172+
#define gotoblas_THUNDERX gotoblas_ARMV8
173+
#define gotoblas_THUNDERX2T99 gotoblas_ARMV8
174+
#define gotoblas_THUNDERX3T110 gotoblas_ARMV8
175+
#define gotoblas_TSV110 gotoblas_ARMV8
176+
#define gotoblas_EMAG8180 gotoblas_ARMV8
177+
#else
161178
extern gotoblas_t gotoblas_THUNDERX;
162179
extern gotoblas_t gotoblas_THUNDERX2T99;
180+
extern gotoblas_t gotoblas_THUNDERX3T110;
163181
extern gotoblas_t gotoblas_TSV110;
164182
extern gotoblas_t gotoblas_EMAG8180;
183+
#endif
165184
extern gotoblas_t gotoblas_NEOVERSEN1;
166185
#define gotoblas_VORTEX gotoblas_NEOVERSEN1
186+
#ifndef OS_DARWIN
167187
#ifndef NO_SVE
168188
extern gotoblas_t gotoblas_NEOVERSEV1;
169189
extern gotoblas_t gotoblas_NEOVERSEN2;
@@ -175,6 +195,12 @@ extern gotoblas_t gotoblas_A64FX;
175195
#define gotoblas_ARMV8SVE gotoblas_ARMV8
176196
#define gotoblas_A64FX gotoblas_ARMV8
177197
#endif
198+
#else
199+
#define gotoblas_NEOVERSEV1 gotoblas_ARMV8
200+
#define gotoblas_NEOVERSEN2 gotoblas_ARMV8
201+
#define gotoblas_ARMV8SVE gotoblas_ARMV8
202+
#define gotoblas_A64FX gotoblas_ARMV8
203+
#endif
178204
#ifndef NO_SME
179205
extern gotoblas_t gotoblas_ARMV9SME;
180206
#if defined (__clang__) && defined(OS_DARWIN)
@@ -191,7 +217,6 @@ extern gotoblas_t gotoblas_VORTEXM4;
191217
#define gotoblas_VORTEXM4 gotoblas_NEOVERSEN1
192218
#endif
193219

194-
extern gotoblas_t gotoblas_THUNDERX3T110;
195220
#endif
196221
#define gotoblas_NEOVERSEV2 gotoblas_NEOVERSEN2
197222

0 commit comments

Comments
 (0)