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.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. git submodule sync
  16. git submodule foreach --recursive git reset --hard
  17. git submodule foreach --recursive git clean -fd
  18. git submodule update --init midout
  19. git submodule update --init intel-mkl-dnn
  20. git submodule update --init Halide
  21. git submodule update --init protobuf
  22. git submodule update --init flatbuffers
  23. git submodule update --init gtest
  24. git submodule update --init cutlass
  25. git submodule update --init cpuinfo
  26. source ./apply-patches.sh
  27. apply_cpuinfo_patches
  28. git submodule update --init OpenBLAS
  29. git submodule update --init libzmq
  30. git submodule update --init cppzmq
  31. git submodule update --init MegRay
  32. pushd MegRay/third_party >/dev/null
  33. git submodule sync
  34. git submodule update --init nccl
  35. git submodule update --init gdrcopy
  36. git submodule update --init ucx
  37. popd >/dev/null
  38. git submodule update --init pybind11
  39. git submodule update --init llvm-project
  40. git submodule update --init range-v3

MegEngine 安装包中集成了使用 GPU 运行代码所需的 CUDA 环境,不用区分 CPU 和 GPU 版。 如果想要运行 GPU 程序,请确保机器本身配有 GPU 硬件设备并安装好驱动。 如果你想体验在云端 GPU 算力平台进行深度学习开发的感觉,欢迎访问 MegStudio 平台