Imported Upstream version 1.12.0
[platform/core/ml/nnfw.git] / runtime / onert / core / include / util / Config.lst
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
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 #ifndef CONFIG
18 #error  Define CONFIG before including this file
19 #endif
20
21 //     Name                    | Type         | Default
22 CONFIG(GRAPH_DOT_DUMP          , int          , "0")
23 CONFIG(BACKENDS                , std::string  , "cpu;acl_cl;acl_neon;ruy;xnnpack;bcq") // FIXME Remove bcq
24 CONFIG(OP_BACKEND_ALLOPS       , std::string  , "")
25 CONFIG(OP_BACKEND_MAP          , std::string  , "")
26 CONFIG(DISABLE_COMPILE         , bool         , "0")
27 CONFIG(ONERT_LOG_ENABLE        , bool         , "0")
28 CONFIG(CPU_MEMORY_PLANNER      , std::string  , "WIC")
29 CONFIG(EXECUTOR                , std::string  , "Linear")
30 CONFIG(ACL_LAYOUT              , std::string  , "none")
31 CONFIG(NCNN_LAYOUT             , std::string  , "NCHW")
32 CONFIG(PROFILING_MODE          , bool         , "0")
33 CONFIG(USE_SCHEDULER           , bool         , "0")
34 CONFIG(OP_SEQ_MAX_NODE         , int          , "0")
35 CONFIG(TRACE_FILEPATH          , std::string  , "")
36 CONFIG(FP16_ENABLE             , bool         , "0")
37 CONFIG(RUY_THREADS             , int          , "-1")
38 CONFIG(XNNPACK_THREADS         , int          , "-1")
39 CONFIG(USE_MMAPED_DATA         , bool         , "0")
40
41 // Auto-generate all operations
42
43 #define OP(InternalName) \
44     CONFIG(OP_BACKEND_ ## InternalName, std::string, "")
45 #include "ir/Operations.lst"
46 #undef OP
47