prepare.sh 1.1 KB
Newer Older
1 2
#!/bin/bash -e

C
ChaiMind 已提交
3 4 5 6 7 8
cd $(dirname $0)

requiredGitVersion="1.8.4"
currentGitVersion="$(git --version | awk '{print $3}')"
if [ "$(printf '%s\n' "$requiredGitVersion" "$currentGitVersion" | sort -V | head -n1)" = "$currentGitVersion" ]; then
    echo "Please update your Git version. (foud version $currentGitVersion, required version >= $requiredGitVersion)"
S
stoneMo 已提交
9 10 11
    exit -1
fi

12
git submodule sync
13 14 15 16 17

git submodule foreach --recursive git reset --hard
git submodule foreach --recursive git clean -fd


18 19 20 21 22 23
git submodule update --init intel-mkl-dnn
git submodule update --init Halide
git submodule update --init protobuf
git submodule update --init flatbuffers
git submodule update --init gtest

24 25 26 27
git submodule update --init cpuinfo
source ./apply-patches.sh
apply_cpuinfo_patches

28 29 30 31 32 33 34 35 36 37 38
git submodule update --init OpenBLAS
git submodule update --init libzmq
git submodule update --init cppzmq

git submodule update --init MegRay
pushd MegRay/third_party >/dev/null
    git submodule sync
    git submodule update --init nccl
    git submodule update --init gdrcopy
    git submodule update --init ucx
popd >/dev/null