LLVM OpenMP 20.0.0git
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include <unistd.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | XSTR(x) #x |
#define | STR(x) XSTR(x) |
#define | streqls(s1, s2) (!strcmp(s1, s2)) |
#define | check(condition) |
#define | my_gethostname(buf, sz) gethostname(buf, sz) |
#define | BUFFER_SIZE 256 |
Functions | |
int | get_integer () |
char * | get_string () |
void | check_integer (const char *formats[2], int(*func)()) |
void | check_nesting_level () |
void | check_thread_num () |
void | check_num_threads () |
int | ancestor_helper () |
void | check_ancestor_tnum () |
int | my_get_pid () |
void | check_process_id () |
void | check_host () |
void | check_undefined () |
int | main (int argc, char **argv) |
#define BUFFER_SIZE 256 |
Definition at line 35 of file fields_values.c.
#define check | ( | condition | ) |
Definition at line 13 of file fields_values.c.
Definition at line 32 of file fields_values.c.
#define STR | ( | x | ) | XSTR(x) |
Definition at line 9 of file fields_values.c.
#define streqls | ( | s1, | |
s2 | |||
) | (!strcmp(s1, s2)) |
Definition at line 11 of file fields_values.c.
#define XSTR | ( | x | ) | #x |
Definition at line 8 of file fields_values.c.
int ancestor_helper | ( | ) |
Definition at line 89 of file fields_values.c.
References omp_get_ancestor_thread_num.
Referenced by check_ancestor_tnum().
void check_ancestor_tnum | ( | ) |
Definition at line 92 of file fields_values.c.
References ancestor_helper(), and check_integer().
Referenced by main().
void check_host | ( | ) |
Definition at line 114 of file fields_values.c.
References check, get_string(), i, my_gethostname, omp_set_affinity_format, and streqls.
Referenced by main().
Definition at line 55 of file fields_values.c.
References check, func(), get_integer(), i, and omp_set_affinity_format.
Referenced by check_ancestor_tnum(), check_nesting_level(), check_num_threads(), check_process_id(), and check_thread_num().
void check_nesting_level | ( | ) |
void check_num_threads | ( | ) |
Definition at line 83 of file fields_values.c.
References check_integer(), and omp_get_num_threads().
Referenced by main().
void check_process_id | ( | ) |
Definition at line 99 of file fields_values.c.
References check_integer(), and my_get_pid().
Referenced by main().
void check_thread_num | ( | ) |
Definition at line 77 of file fields_values.c.
References check_integer().
void check_undefined | ( | ) |
Definition at line 131 of file fields_values.c.
References check, get_string(), i, omp_set_affinity_format, and streqls.
Referenced by main().
int get_integer | ( | ) |
Definition at line 37 of file fields_values.c.
References buf, BUFFER_SIZE, check, and omp_capture_affinity.
Referenced by check_integer().
char * get_string | ( | ) |
Definition at line 47 of file fields_values.c.
References buf, BUFFER_SIZE, check, and omp_capture_affinity.
Referenced by check_host(), check_thread_num_ljustified(), check_thread_num_padded_ljustified(), check_thread_num_padded_rjustified(), check_thread_num_rjustified(), and check_undefined().
Definition at line 145 of file fields_values.c.
References check_ancestor_tnum(), check_host(), check_nesting_level(), check_num_threads(), check_process_id(), check_undefined(), and omp_set_nested.
int my_get_pid | ( | ) |
Definition at line 98 of file fields_values.c.
Referenced by check_process_id().