1 /*******************************************************************************
2 * Copyright 2018 Intel Corporation
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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 *******************************************************************************/
17 /* DO NOT EDIT, AUTO-GENERATED */
19 #ifndef MKLDNN_DEBUG_H
20 #define MKLDNN_DEBUG_H
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
24 /* All symbols shall be internal unless marked as MKLDNN_API */
25 #if defined _WIN32 || defined __CYGWIN__
26 # define MKLDNN_HELPER_DLL_IMPORT __declspec(dllimport)
27 # define MKLDNN_HELPER_DLL_EXPORT __declspec(dllexport)
30 # define MKLDNN_HELPER_DLL_IMPORT __attribute__ ((visibility ("default")))
31 # define MKLDNN_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
33 # define MKLDNN_HELPER_DLL_IMPORT
34 # define MKLDNN_HELPER_DLL_EXPORT
39 # ifdef MKLDNN_DLL_EXPORTS
40 # define MKLDNN_API MKLDNN_HELPER_DLL_EXPORT
42 # define MKLDNN_API MKLDNN_HELPER_DLL_IMPORT
48 #if defined (__GNUC__)
49 # define MKLDNN_DEPRECATED __attribute__((deprecated))
50 #elif defined(_MSC_VER)
51 # define MKLDNN_DEPRECATED __declspec(deprecated)
53 # define MKLDNN_DEPRECATED
56 #include "mkldnn_types.h"
57 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 const char MKLDNN_API *mkldnn_status2str(mkldnn_status_t v);
64 const char MKLDNN_API *mkldnn_dt2str(mkldnn_data_type_t v);
65 const char MKLDNN_API *mkldnn_rmode2str(mkldnn_round_mode_t v);
66 const char MKLDNN_API *mkldnn_fmt2str(mkldnn_memory_format_t v);
67 const char MKLDNN_API *mkldnn_prop_kind2str(mkldnn_prop_kind_t v);
68 const char MKLDNN_API *mkldnn_prim_kind2str(mkldnn_primitive_kind_t v);
69 const char MKLDNN_API *mkldnn_alg_kind2str(mkldnn_alg_kind_t v);
70 const char MKLDNN_API *mkldnn_rnn_direction2str(mkldnn_rnn_direction_t v);