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.

run.sh 754 B

12345678910111213141516171819
  1. #!/bin/bash -e
  2. ignore_list="--ignore test/unit/module/test_pytorch.py \
  3. --ignore test/pytorch_comparison \
  4. --ignore test/unit/hub/test_hub.py \
  5. --ignore test/unit/data \
  6. --ignore test/integration/manual \
  7. --ignore megengine/module/pytorch \
  8. --ignore test/unit/module/test_external.py"
  9. test_dirs="megengine test"
  10. pushd $(dirname "${BASH_SOURCE[0]}")/.. >/dev/null
  11. pytest -xv -m 'isolated_distributed' \
  12. --json-report --json-report-file=time_python_test.json \
  13. $ignore_list $test_dirs
  14. pytest -xv -m 'not internet and not isolated_distributed' \
  15. --json-report --json-report-file=time_python_test.json \
  16. $ignore_list $test_dirs
  17. popd >/dev/null

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