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.

usage.sh 3.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/bash
  2. # Copyright 2021 Huawei Technologies Co., Ltd
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # ============================================================================
  16. set -e
  17. usage()
  18. {
  19. echo "Usage:"
  20. echo "bash build.sh [-d] [-r] [-v] [-c on|off] [-t ut|st] [-g on|off] [-h] [-b ge] [-m infer|train] \\"
  21. echo " [-a on|off] [-p on|off] [-i] [-R] [-D on|off] [-j[n]] [-e gpu|ascend|cpu] \\"
  22. echo " [-P on|off] [-z [on|off]] [-M on|off] [-V 10.1|11.1|310|910] [-I arm64|arm32|x86_64] [-K on|off] \\"
  23. echo " [-B on|off] [-E] [-l on|off] [-n full|lite|off] [-H on|off] \\"
  24. echo " [-A on|off] [-S on|off] [-k on|off] [-W sse|neon|avx|avx512|off] \\"
  25. echo " [-L Tensor-RT path] [-y on|off] [-F on|off] \\"
  26. echo ""
  27. echo "Options:"
  28. echo " -d Debug mode"
  29. echo " -r Release mode, default mode"
  30. echo " -v Display build command"
  31. echo " -c Enable code coverage, default off"
  32. echo " -t Run testcases, default off"
  33. echo " -g Use glog to output log, default on"
  34. echo " -h Print usage"
  35. echo " -b Select other backend, available: \\"
  36. echo " ge:graph engine"
  37. echo " -m Select graph engine backend mode, available: infer, train, default is infer"
  38. echo " -a Enable ASAN, default off"
  39. echo " -p Enable pipeline profile, print to stdout, default off"
  40. echo " -R Enable pipeline profile, record to json, default off"
  41. echo " -i Enable increment building, default off"
  42. echo " -j[n] Set the threads when building (Default: -j8)"
  43. echo " -e Use cpu, gpu or ascend"
  44. echo " -s Enable security, default off"
  45. echo " -P Enable dump anf graph to file in ProtoBuffer format, default on"
  46. echo " -D Enable dumping of function graph ir, default on"
  47. echo " -z Compile dataset & mindrecord, default on"
  48. echo " -n Compile minddata with mindspore lite, available: off, lite, full, lite_cv, full mode in lite train and lite_cv, wrapper mode in lite predict"
  49. echo " -M Enable MPI and NCCL for GPU training, gpu default on"
  50. echo " -V Specify the device version, if -e gpu, default CUDA 10.1, if -e ascend, default Ascend 910"
  51. echo " -I Enable compiling mindspore lite for arm64, arm32 or x86_64, default disable mindspore lite compilation"
  52. echo " -A Enable compiling mindspore lite aar package, option: on/off, default: off"
  53. echo " -K Compile with AKG, default on if -e gpu or -e ascend, else default off"
  54. echo " -B Enable debugger, default on"
  55. echo " -E Enable IBVERBS for parameter server, default off"
  56. echo " -l Compile with python dependency, default on"
  57. echo " -S Enable enable download cmake compile dependency from gitee , default off"
  58. echo " -k Enable make clean, clean up compilation generated cache "
  59. echo " -W Enable SIMD instruction set, use [sse|neon|avx|avx512|off], default avx for cloud CPU backend"
  60. echo " -H Enable hidden"
  61. echo " -L Link and specify Tensor-RT library path, default disable Tensor-RT lib linking"
  62. echo " -y Compile the symbol table switch and save the symbol table to the directory output"
  63. echo " -F Use fast hash table in mindspore compiler, default on"
  64. }