Skip to content

Commit ba4f433

Browse files
authored
Merge pull request #1749 from martin-frbg/issue1531
Fix ARMV8 cross-compilation for IOS
2 parents 9e2bb0c + 4cf7315 commit ba4f433

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

kernel/arm64/KERNEL

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ifndef SNRM2KERNEL
2-
SNRM2KERNEL = nrm2.c
2+
SNRM2KERNEL = ../arm/nrm2.c
33
endif
44

55
ifndef DNRM2KERNEL
6-
DNRM2KERNEL = nrm2.c
6+
DNRM2KERNEL = ../arm/nrm2.c
77
endif
88

99
ifndef CNRM2KERNEL
10-
CNRM2KERNEL = znrm2.c
10+
CNRM2KERNEL = ../arm/znrm2.c
1111
endif
1212

1313
ifndef ZNRM2KERNEL
14-
ZNRM2KERNEL = znrm2.c
14+
ZNRM2KERNEL = ../arm/znrm2.c
1515
endif
1616

1717
ifndef SCABS_KERNEL

kernel/arm64/KERNEL.ARMV8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ CDOTKERNEL = zdot.S
5151
ZDOTKERNEL = zdot.S
5252
DSDOTKERNEL = dot.S
5353

54+
ifneq ($(OS_DARWIN)$(CROSS),11)
5455
SNRM2KERNEL = nrm2.S
5556
DNRM2KERNEL = nrm2.S
5657
CNRM2KERNEL = znrm2.S
5758
ZNRM2KERNEL = znrm2.S
59+
endif
5860

5961
SROTKERNEL = rot.S
6062
DROTKERNEL = rot.S
@@ -86,7 +88,11 @@ DTRMMKERNEL = ../generic/trmmkernel_2x2.c
8688
CTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
8789
ZTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
8890

91+
ifneq ($(OS_DARWIN)$(CROSS),11)
8992
SGEMMKERNEL = sgemm_kernel_4x4.S
93+
else
94+
SGEMMKERNEL = ../generic/gemmkernel_2x2.c
95+
endif
9096
SGEMMONCOPY = ../generic/gemm_ncopy_4.c
9197
SGEMMOTCOPY = ../generic/gemm_tcopy_4.c
9298
SGEMMONCOPYOBJ = sgemm_oncopy.o

param.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,8 +2590,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25902590
#define GEMM_DEFAULT_OFFSET_B 0
25912591
#define GEMM_DEFAULT_ALIGN 0x03fffUL
25922592

2593+
#if defined(OS_DARWIN) && defined(CROSS)
2594+
#define SGEMM_DEFAULT_UNROLL_M 2
2595+
#define SGEMM_DEFAULT_UNROLL N 2
2596+
#else
25932597
#define SGEMM_DEFAULT_UNROLL_M 4
25942598
#define SGEMM_DEFAULT_UNROLL_N 4
2599+
#endif
25952600

25962601
#define DGEMM_DEFAULT_UNROLL_M 2
25972602
#define DGEMM_DEFAULT_UNROLL_N 2

0 commit comments

Comments
 (0)