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.

prepare.sh 1.7 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/bash -e
  2. cd $(dirname $0)
  3. # force use /usr/bin/sort on windows, /c/Windows/system32/sort do not support -V
  4. OS=$(uname -s)
  5. SORT=sort
  6. if [[ $OS =~ "NT" ]]; then
  7. SORT=/usr/bin/sort
  8. fi
  9. requiredGitVersion="1.8.4"
  10. currentGitVersion="$(git --version | awk '{print $3}')"
  11. if [ "$(printf '%s\n' "$requiredGitVersion" "$currentGitVersion" | ${SORT} -V | head -n1)" = "$currentGitVersion" ]; then
  12. echo "Please update your Git version. (foud version $currentGitVersion, required version >= $requiredGitVersion)"
  13. exit -1
  14. fi
  15. function git_submodule_update() {
  16. git submodule sync
  17. git submodule update -f --init midout
  18. git submodule update -f --init intel-mkl-dnn
  19. git submodule update -f --init Halide
  20. git submodule update -f --init protobuf
  21. git submodule update -f --init gtest
  22. git submodule update -f --init flatbuffers
  23. git submodule update -f --init cutlass
  24. git submodule update -f --init Json
  25. git submodule update -f --init pybind11
  26. git submodule update -f --init llvm-project
  27. git submodule update -f --init range-v3
  28. git submodule update -f --init libzmq
  29. git submodule update -f --init cppzmq
  30. git submodule update -f --init OpenBLAS
  31. git submodule update -f --init cpuinfo
  32. git submodule update -f --init gflags
  33. git submodule update -f --init cpp_redis
  34. git submodule update -f --init tacopie
  35. git submodule update -f --init MegRay
  36. pushd MegRay/third_party >/dev/null
  37. git submodule sync
  38. git submodule update -f --init nccl
  39. git submodule update -f --init gdrcopy
  40. git submodule update -f --init ucx
  41. popd >/dev/null
  42. }
  43. if [[ -z "${ALREADY_UPDATE_SUBMODULES}" ]]; then
  44. git_submodule_update
  45. fi