@@ -9,79 +9,28 @@ if [[ $(uname) == "Darwin" ]]; then
99 export PLAT=x86_64
1010elif [[ $( uname -m) == " x86_64" ]]; then
1111 echo got x86_64
12- export TRAVIS_OS_NAME=ubuntu-latest
1312 export PLAT=x86_64
1413 # export PLAT=i86
15- DOCKER_TEST_IMAGE=multibuild/xenial_${PLAT}
1614elif [[ $( uname -m) == arm64 ]]; then
1715 echo got arm64
1816 exit -1
1917else
2018 echo got nothing
2119 exit -1
22- export TRAVIS_OS_NAME=osx
2320 export LDFLAGS=" -L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
2421 export LIBRARY_PATH=" -L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
2522 export PLAT=x86_64
2623 # export PLAT=arm64
2724 export SUFFIX=gf_c469a42
2825fi
2926export REPO_DIR=OpenBLAS
30- export OPENBLAS_COMMIT=" v0.3.30 "
27+ export OPENBLAS_COMMIT=" develop "
3128
3229# export MB_ML_LIBC=musllinux
33- # export MB_ML_VER=_1_1
30+ # export MB_ML_VER=_1_2
3431# export MB_ML_VER=2014
3532export INTERFACE64=1
33+ # export BUILD_PREFIX=/tmp/openblas
34+ # mkdir -p $BUILD_PREFIX
3635
37- function install_virtualenv {
38- # Install VirtualEnv
39- python3 -m pip install --upgrade pip
40- pip install virtualenv
41- }
42-
43- function clean_code_local {
44- # Copied from common_utils.sh, with added debugging
45- local repo_dir=${1:- $REPO_DIR }
46- local build_commit=${2:- $BUILD_COMMIT }
47- [ -z " $repo_dir " ] && echo " repo_dir not defined" && exit 1
48- [ -z " $build_commit " ] && echo " build_commit not defined" && exit 1
49- # The package $repo_dir may be a submodule. git submodules do not
50- # have a .git directory. If $repo_dir is copied around, tools like
51- # Versioneer which require that it be a git repository are unable
52- # to determine the version. Give submodule proper git directory
53- # XXX no need to do this
54- # fill_submodule "$repo_dir"
55- pushd $repo_dir
56- git fetch origin --tags
57- git checkout $build_commit
58- git clean -fxd
59- git reset --hard
60- git submodule update --init --recursive
61- popd
62- }
63-
64- function build_openblas {
65- if [[ -z VIRTUAL_ENV ]]; then
66- echo " must be run in a virtualenv"
67- fi
68- # Build OpenBLAS
69- set -xeo pipefail
70- source tools/build_steps.sh
71- echo " ------ BEFORE BUILD ---------"
72- before_build
73- if [[ " $NIGHTLY " = " true" ]]; then
74- echo " ------ CLEAN CODE --------"
75- clean_code $REPO_DIR develop
76- echo " ------ BUILD LIB --------"
77- build_lib " $PLAT " " $INTERFACE64 " " 1"
78- else
79- echo " ------ CLEAN CODE --------"
80- clean_code $REPO_DIR $OPENBLAS_COMMIT
81- echo " ------ BUILD LIB --------"
82- build_lib " $PLAT " " $INTERFACE64 " " 0"
83- fi
84- }
85-
86- # install_virtualenv
87- build_openblas
36+ bash ./build-openblas.sh
0 commit comments