File: tm_verbose.h

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (23 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include "ompi_config.h"

#define NONE     0
/* output in stderr*/
#define CRITICAL 1
#define ERROR    2
/* output in stdout*/
#define WARNING  3
#define TIMING   4
#define INFO     5
#define DEBUG    6


/* return 0 on errror and  1 on success */
OMPI_HIDDEN int          tm_open_verbose_file(char *filename);
OMPI_HIDDEN int          tm_close_verbose_file(void);
OMPI_HIDDEN void         tm_set_verbose_level(unsigned int level);
OMPI_HIDDEN unsigned int tm_get_verbose_level(void);
OMPI_HIDDEN FILE *       tm_get_verbose_output(void);

#define tm_verbose_printf(level, ...) level <= tm_get_verbose_level()?fprintf(tm_get_verbose_output(),__VA_ARGS__):0