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

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash -e
  2. git_version=$(git --version)
  3. if [ >= "1.8.4" ]; then
  4. echo "Since git 1.8.4 (August 2013), you don't have to be at top-level to run git submodule update."
  5. else
  6. echo "You have to update your git version to 1.8.4 or later."
  7. exit -1
  8. fi
  9. cd $(dirname $0)
  10. git submodule sync
  11. git submodule foreach --recursive git reset --hard
  12. git submodule foreach --recursive git clean -fd
  13. git submodule update --init intel-mkl-dnn
  14. git submodule update --init Halide
  15. git submodule update --init protobuf
  16. git submodule update --init flatbuffers
  17. git submodule update --init gtest
  18. git submodule update --init cpuinfo
  19. source ./apply-patches.sh
  20. apply_cpuinfo_patches
  21. git submodule update --init OpenBLAS
  22. git submodule update --init libzmq
  23. git submodule update --init cppzmq
  24. git submodule update --init MegRay
  25. pushd MegRay/third_party >/dev/null
  26. git submodule sync
  27. git submodule update --init nccl
  28. git submodule update --init gdrcopy
  29. git submodule update --init ucx
  30. popd >/dev/null

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