SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
sion_omp_internal_gen.c
Go to the documentation of this file.
1 /****************************************************************************
2 ** SIONLIB http://www.fz-juelich.de/jsc/sionlib **
3 *****************************************************************************
4 ** Copyright (c) 2008-2019 **
5 ** Forschungszentrum Juelich, Juelich Supercomputing Centre **
6 ** **
7 ** See the file COPYRIGHT in the package base directory for details **
8 ****************************************************************************/
9 
14 #define _XOPEN_SOURCE 700
15 
16 #include <stdlib.h>
17 #include <stdio.h>
18 #include <stdarg.h>
19 #include <string.h>
20 #include <time.h>
21 
22 #include <sys/time.h>
23 
24 #include <sys/types.h>
25 #include <fcntl.h>
26 
27 #include <unistd.h>
28 
29 #include "sion.h"
30 #include "sion_debug.h"
31 #include "sion_error_handler.h"
32 #include "sion_internal.h"
33 #include "sion_fd.h"
34 #include "sion_filedesc.h"
35 #include "sion_printts.h"
36 
37 #include "sion_omp_internal_gen.h"
38 
39 #ifdef SION_OMP
40 
41 #include "omp.h"
42 
43 int _sion_errorprint_omp(int rc, int level, const char *format, ...)
44 {
45  int rank=-1, thread;
46  va_list ap;
47 
48  thread = omp_get_thread_num();
49 
50  va_start(ap, format);
51  rc=__sion_errorprint_vargs(rc, level, rank, thread, format, ap);
52  va_end(ap);
53 
54  return (rc);
55 }
56 
57 /* end of ifdef OMP */
58 #endif
Sion Time Stamp Header.