11#define streqls(s1, s2) (!strcmp(s1, s2))
13#define check(condition) \
15 fprintf(stderr, "error: %s: %d: " STR(condition) "\n", __FILE__, \
20#define BUFFER_SIZE 1024
23#pragma omp threadprivate(buf)
29 if (check_needed != 0) {
30 check(needed == check_needed);
37 const char* formats[2] = {
"%0.8{thread_num}",
"%0.8n"};
38 for (
i = 0;
i <
sizeof(formats)/
sizeof(formats[0]); ++
i) {
40 #pragma omp parallel num_threads(8)
43 int tid = omp_get_thread_num();
44 char ctid =
'0' + (
char)tid;
46 for (
j = 0;
j < 7; ++
j) {
56 const char* formats[2] = {
"%.12{thread_num}",
"%.12n"};
57 for (
i = 0;
i <
sizeof(formats)/
sizeof(formats[0]); ++
i) {
59 #pragma omp parallel num_threads(8)
62 int tid = omp_get_thread_num();
63 char ctid =
'0' + (
char)tid;
65 for (
j = 0;
j < 11; ++
j) {
75 const char* formats[2] = {
"%5{thread_num}",
"%5n"};
76 for (
i = 0;
i <
sizeof(formats)/
sizeof(formats[0]); ++
i) {
78 #pragma omp parallel num_threads(8)
81 int tid = omp_get_thread_num();
82 char ctid =
'0' + (
char)tid;
85 for (
j = 1;
j < 5; ++
j) {
94 const char* formats[2] = {
"%018{thread_num}",
"%018n"};
95 for (
i = 0;
i <
sizeof(formats)/
sizeof(formats[0]); ++
i) {
97 #pragma omp parallel num_threads(8)
100 int tid = omp_get_thread_num();
101 char ctid =
'0' + (
char)tid;
104 for (
j = 1;
j < 18; ++
j) {
111int main(
int argc,
char** argv) {
void check_thread_num_padded_rjustified()
void check_thread_num_ljustified()
void check_thread_num_padded_ljustified()
void check_thread_num_rjustified()
void const char const char int ITT_FORMAT __itt_group_sync s
#define omp_set_affinity_format
#define omp_capture_affinity