| 1 | /******************************************************************************* |
| 2 | * Copyright 2018 Intel Corporation |
| 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 VERBOSE_HPP |
| 18 | #define VERBOSE_HPP |
| 19 | |
| 20 | #include <stdio.h> |
| 21 | #include <cinttypes> |
| 22 | |
| 23 | #include "mkldnn_debug.h" |
| 24 | #include "c_types_map.hpp" |
| 25 | #include "utils.hpp" |
| 26 | #include "z_magic.hpp" |
| 27 | |
| 28 | namespace mkldnn { |
| 29 | namespace impl { |
| 30 | |
| 31 | struct verbose_t { |
| 32 | int level; |
| 33 | }; |
| 34 | |
| 35 | const verbose_t *mkldnn_verbose(); |
| 36 | double get_msec(); |
| 37 | const char *get_isa_info(); |
| 38 | |
| 39 | #if !defined(DISABLE_VERBOSE) |
| 40 | #define MKLDNN_VERBOSE_BUF_LEN 1024 |
| 41 | #else |
| 42 | #define MKLDNN_VERBOSE_BUF_LEN 1 |
| 43 | #endif |
| 44 | |
| 45 | void init_info(batch_normalization_pd_t *s, char *buffer); |
| 46 | void init_info(concat_pd_t *s, char *buffer); |
| 47 | void init_info(convolution_pd_t *s, char *buffer); |
| 48 | void init_info(deconvolution_pd_t *s, char *buffer); |
| 49 | void init_info(eltwise_pd_t *s, char *buffer); |
| 50 | void init_info(inner_product_pd_t *s, char *buffer); |
| 51 | void init_info(lrn_pd_t *s, char *buffer); |
| 52 | void init_info(pooling_pd_t *s, char *buffer); |
| 53 | void init_info(reorder_pd_t *s, char *buffer); |
| 54 | void init_info(rnn_pd_t *s, char *buffer); |
| 55 | void init_info(shuffle_pd_t *s, char *buffer); |
| 56 | void init_info(softmax_pd_t *s, char *buffer); |
| 57 | void init_info(sum_pd_t *s, char *buffer); |
| 58 | |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | #endif |
| 63 | |