File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,14 @@ if [ "$build_bits" == 64 ]; then
64
64
extra=" -fno-asynchronous-unwind-tables"
65
65
vc_arch=" X64"
66
66
plat_tag=" win_amd64"
67
+ dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
67
68
else
68
69
march=pentium4
69
70
extra=" -mfpmath=sse -msse2"
70
71
fextra=" -m32"
71
72
vc_arch=" i386"
72
73
plat_tag=" win32"
74
+ dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
73
75
fi
74
76
cflags=" -O2 -march=$march -mtune=generic $extra "
75
77
fflags=" $fextra $cflags -frecursive -ffpe-summary=invalid,zero"
@@ -94,7 +96,8 @@ OPENBLAS_VERSION=$(git describe --tags --abbrev=8)
94
96
# Variable used in creating output libraries
95
97
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
96
98
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
97
- BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
99
+ BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20 \
100
+ DYNAMIC_LIST=" $dynamic_list " \
98
101
LDFLAGS=" $LDFLAGS " \
99
102
COMMON_OPT=" $cflags " \
100
103
FCOMMON_OPT=" $fflags " \
Original file line number Diff line number Diff line change @@ -124,32 +124,35 @@ function do_build_lib {
124
124
case $( get_os) -$plat in
125
125
Linux-x86_64)
126
126
local bitness=64
127
- local target_flags=" TARGET=PRESCOTT"
127
+ local target=PRESCOTT
128
+ local dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
128
129
;;
129
130
Darwin-x86_64)
130
131
local bitness=64
131
- local target_flags=" TARGET=CORE2"
132
+ local target_flags=CORE2
133
+ local dynamic_list=" CORE2 NEHALEM SANDYBRIDGE HASWELL SKYLAKEX"
132
134
# Pick up the gfortran runtime libraries
133
135
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
134
136
;;
135
137
* -i686)
136
138
local bitness=32
137
- local target_flags=" TARGET=PRESCOTT"
139
+ local target_flags=PRESCOTT
140
+ local dynamic_list=" PRESCOTT NEHALEM SANDYBRIDGE HASWELL"
138
141
;;
139
142
Linux-aarch64)
140
143
local bitness=64
141
- local target_flags= " TARGET= ARMV8"
144
+ local target= ARMV8
142
145
;;
143
146
Darwin-arm64)
144
147
local bitness=64
145
- local target_flags= " TARGET= VORTEX"
148
+ local target= VORTEX
146
149
;;
147
150
* -s390x)
148
151
local bitness=64
149
152
;;
150
153
* -ppc64le)
151
154
local bitness=64
152
- local target_flags= " TARGET= POWER8"
155
+ local target= POWER8
153
156
;;
154
157
* ) echo " Strange plat value $plat " ; exit 1 ;;
155
158
esac
You can’t perform that action at this time.
0 commit comments