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