fix build error 25/274225/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060729 accepted/tizen/7.0/unified/hotfix/20221116.111207 accepted/tizen/unified/20220530.140630 submit/tizen/20220527.005052 tizen_7.0_m2_release
authorInki Dae <inki.dae@samsung.com>
Mon, 25 Apr 2022 05:20:42 +0000 (14:20 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 26 May 2022 23:56:07 +0000 (08:56 +0900)
Fixed below build error,
[   13s] getarch_2nd.c: In function 'main':
[   13s] getarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'?
[   13s]    12 |     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
[   13s]       |                                   ^~~~~~~~~~~~~~~~~~~~~~
[   13s]       |                                   XGEMM_DEFAULT_UNROLL_M

Reported-by : hyunggi.lee@samsung.com
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Change-Id: Idba959362d6e8e4078ebfca2d3844ca03878e0b1

packaging/openblas.spec

index b7173e8..14a715b 100644 (file)
@@ -149,7 +149,7 @@ export LDFLAGS+="-Wl,-z,noexecstack"
 
 # Only x86/x86-64 CPUs support DYNAMIC_ARCH
 %ifarch %ix86 x86_64
-%define openblas_target DYNAMIC_ARCH=1
+%define openblas_target DYNAMIC_ARCH=1 TARGET=NEHALEM
 %endif
 %ifarch armv7l
 %define openblas_target TARGET=ARMV7 ARM_SOFTFP_ABI=1