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.

default_options.sh 2.0 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. # shellcheck disable=SC2034
  17. set -e
  18. init_default_options()
  19. {
  20. # Init default values of build options
  21. export THREAD_NUM=8
  22. export DEBUG_MODE="off"
  23. VERBOSE=""
  24. export ENABLE_SECURITY="off"
  25. export ENABLE_COVERAGE="off"
  26. export RUN_TESTCASES="off"
  27. export RUN_CPP_ST_TESTS="off"
  28. export ENABLE_BACKEND=""
  29. export TRAIN_MODE="INFER"
  30. export ENABLE_ASAN="off"
  31. export ENABLE_PROFILE="off"
  32. export INC_BUILD="off"
  33. export ENABLE_TIMELINE="off"
  34. export ENABLE_DUMP2PROTO="on"
  35. export ENABLE_DUMP_IR="on"
  36. export COMPILE_MINDDATA="on"
  37. export COMPILE_MINDDATA_LITE="lite_cv"
  38. export ENABLE_MPI="off"
  39. export CUDA_VERSION="10.1"
  40. export COMPILE_LITE="off"
  41. export LITE_PLATFORM=""
  42. export LITE_ENABLE_AAR="off"
  43. export USE_GLOG="on"
  44. export ENABLE_AKG="off"
  45. export ENABLE_ACL="off"
  46. export ENABLE_D="off"
  47. export ENABLE_DEBUGGER="on"
  48. export ENABLE_IBVERBS="off"
  49. export ENABLE_PYTHON="on"
  50. export ENABLE_GPU="off"
  51. export ENABLE_VERBOSE="off"
  52. export ENABLE_GITEE="off"
  53. export ENABLE_MAKE_CLEAN="off"
  54. export X86_64_SIMD="off"
  55. export ARM_SIMD="off"
  56. export DEVICE_VERSION=""
  57. export DEVICE=""
  58. export ENABLE_HIDDEN="on"
  59. export TENSORRT_HOME=""
  60. export USER_ENABLE_DUMP_IR=false
  61. export USER_ENABLE_DEBUGGER=false
  62. export ENABLE_SYM_FILE="off"
  63. export ENABLE_FAST_HASH_TABLE="on"
  64. }