File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,28 @@ cmake -DCMAKE_INSTALL_PREFIX=${prefix} \
4444 ..
4545else
4646cd $WORKSPACE/srcdir/OpenBLAS*
47+
48+ if [[ "${target}" == x86_64-* ]]; then
49+ export TARGET=HASWELL
50+ export BINARY=64
51+ elif [[ "${target}" == i686-* ]]; then
52+ export TARGET=PRESCOTT
53+ export BINARY=32
54+ elif [[ "${target}" == aarch64-* ]]; then
55+ export TARGET=ARMV8
56+ export BINARY=64
57+ elif [[ "${target}" == arm-* ]]; then
58+ export TARGET=ARMV7
59+ export BINARY=32
60+ elif [[ "${target}" == powerpc64le-* ]]; then
61+ export TARGET=POWER8
62+ export BINARY=64
63+ fi
64+
65+ make DYNAMIC_ARCH=1 NO_SHARED=1 USE_OPENMP=0 NUM_THREADS=64 \
66+ TARGET=${TARGET} BINARY=${BINARY} NO_LAPACK=0 \
67+ CC=${CC} FC=${FC} HOSTCC=gcc -j${nproc}
68+
4769make DYNAMIC_ARCH=1 NO_SHARED=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=64 -j${nproc}
4870make install PREFIX=${prefix} NO_SHARED=1
4971
You can’t perform that action at this time.
0 commit comments