30 if (
sched != hope_sched || chunk != hope_chunk) {
32 printf(
"Error: %s: schedule: (%d, %d) is not equal to (%d, %d)\n", extra,
33 (
int)hope_sched, hope_chunk, (
int)
sched, chunk);
38 if (!strcmp(str,
"dynamic"))
40 if (!strcmp(str,
"static"))
42 if (!strcmp(str,
"guided"))
44 printf(
"Error: Unknown schedule type: %s\n", str);
48int is_monotonic(
const char *str) {
return !strcmp(str,
"monotonic"); }
50int main(
int argc,
char **argv) {
51 int i, monotonic, chunk, ref_chunk;
55 printf(
"Error: usage: <executable> monotonic|nonmonotonic <schedule> "
62 ref_chunk = atoi(argv[3]);
64 omp_get_schedule(&
sched, &chunk);
67 printf(
"Error: sched (0x%x) does not have monotonic modifier\n",
72 if (
sched != ref_sched) {
73 printf(
"Error: sched (0x%x) is not 0x%x\n", (
int)
sched, (
int)ref_sched);
76 if (chunk != ref_chunk) {
77 printf(
"Error: chunk is not %d\n", ref_chunk);
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d int
int is_monotonic(const char *str)
int sched_has_modifiers(omp_sched_t sched, omp_sched_t modifiers)
omp_sched_t sched_without_modifiers(omp_sched_t sched)
omp_sched_t str2omp_sched(const char *str)
void check_schedule(const char *extra, const omp_sched_t sched, int chunk, omp_sched_t hope_sched, int hope_chunk)