You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash -e
-
- cd $(dirname $0)
-
- # force use /usr/bin/sort on windows, /c/Windows/system32/sort do not support -V
- OS=$(uname -s)
- SORT=sort
- if [[ $OS =~ "NT" ]]; then
- SORT=/usr/bin/sort
- fi
-
- 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)"
- exit -1
- fi
- function git_submodule_update() {
- git submodule sync
- git submodule update -f --init midout
- git submodule update -f --init intel-mkl-dnn
- git submodule update -f --init Halide
- git submodule update -f --init protobuf
- git submodule update -f --init gtest
- git submodule update -f --init flatbuffers
- git submodule update -f --init cutlass
- git submodule update -f --init Json
- git submodule update -f --init pybind11
- git submodule update -f --init llvm-project
- git submodule update -f --init range-v3
- git submodule update -f --init libzmq
- git submodule update -f --init cppzmq
- git submodule update -f --init OpenBLAS
- git submodule update -f --init cpuinfo
- git submodule update -f --init gflags
- git submodule update -f --init cpp_redis
- git submodule update -f --init tacopie
-
- git submodule update -f --init MegRay
- pushd MegRay/third_party >/dev/null
- git submodule sync
- git submodule update -f --init nccl
- git submodule update -f --init gdrcopy
- git submodule update -f --init ucx
- popd >/dev/null
- }
-
- if [[ -z "${ALREADY_UPDATE_SUBMODULES}" ]]; then
- git_submodule_update
- fi
|