File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ OPENBLAS_VERSION=$(git describe --tags)
66
66
export LIBNAMESUFFIX=${OPENBLAS_VERSION} -${GCC_TAG}
67
67
make BINARY=$BUILD_BITS DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
68
68
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
69
- BUILD_LAPACK_DEPRECATED=1 \
69
+ BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT \
70
70
COMMON_OPT=" $cflags " \
71
71
FCOMMON_OPT=" $fflags " \
72
72
MAX_STACK_ALLOC=2048 \
Original file line number Diff line number Diff line change @@ -86,11 +86,24 @@ function do_build_lib {
86
86
local interface64=$3
87
87
echo " Building with settings: '$plat ' '$suffix ' '$interface64 '"
88
88
case $plat in
89
- x86_64) local bitness=64 ;;
90
- i686) local bitness=32 ;;
91
- aarch64) local bitness=64 ;;
92
- s390x) local bitness=64 ;;
93
- ppc64le) local bitness=64 ;;
89
+ x86_64)
90
+ local bitness=64
91
+ local target_flags=" TARGET=PRESCOTT"
92
+ ;;
93
+ i686)
94
+ local bitness=32
95
+ local target_flags=" TARGET=PRESCOTT"
96
+ ;;
97
+ aarch64)
98
+ local bitness=64
99
+ local target_flags=" TARGET=ARMV8"
100
+ ;;
101
+ s390x)
102
+ local bitness=64
103
+ ;;
104
+ ppc64le)
105
+ local bitness=64
106
+ ;;
94
107
* ) echo " Strange plat value $plat " ; exit 1 ;;
95
108
esac
96
109
case $interface64 in
@@ -111,7 +124,7 @@ function do_build_lib {
111
124
set -x
112
125
(cd OpenBLAS \
113
126
&& patch_source \
114
- && make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags > /dev/null \
127
+ && make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags $target_flags > /dev/null \
115
128
&& make PREFIX=$BUILD_PREFIX $interface64_flags install )
116
129
stop_spinner
117
130
local version=$( cd OpenBLAS && git describe --tags --abbrev=8)
You can’t perform that action at this time.
0 commit comments