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
28namespace mkldnn {
29namespace impl {
30
31struct verbose_t {
32 int level;
33};
34
35const verbose_t *mkldnn_verbose();
36double get_msec();
37const 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
45void init_info(batch_normalization_pd_t *s, char *buffer);
46void init_info(concat_pd_t *s, char *buffer);
47void init_info(convolution_pd_t *s, char *buffer);
48void init_info(deconvolution_pd_t *s, char *buffer);
49void init_info(eltwise_pd_t *s, char *buffer);
50void init_info(inner_product_pd_t *s, char *buffer);
51void init_info(lrn_pd_t *s, char *buffer);
52void init_info(pooling_pd_t *s, char *buffer);
53void init_info(reorder_pd_t *s, char *buffer);
54void init_info(rnn_pd_t *s, char *buffer);
55void init_info(shuffle_pd_t *s, char *buffer);
56void init_info(softmax_pd_t *s, char *buffer);
57void init_info(sum_pd_t *s, char *buffer);
58
59}
60}
61
62#endif
63