diff options
Diffstat (limited to 'final/runtime/test/tasking/omp_task_priority.c')
-rw-r--r-- | final/runtime/test/tasking/omp_task_priority.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/final/runtime/test/tasking/omp_task_priority.c b/final/runtime/test/tasking/omp_task_priority.c new file mode 100644 index 0000000..7b62360 --- /dev/null +++ b/final/runtime/test/tasking/omp_task_priority.c @@ -0,0 +1,22 @@ +// RUN: %libomp-compile && env OMP_MAX_TASK_PRIORITY=42 %libomp-run +// Test OMP 4.5 task priorities +// Currently only API function and envirable parsing implemented. +// Test environment sets envirable: OMP_MAX_TASK_PRIORITY=42 as tested below. +#include <stdio.h> +#include <omp.h> + +int main (void) { + int passed; + + passed = (omp_get_max_task_priority() == 42); + printf("Got %d\n", omp_get_max_task_priority()); + + if (passed) { + printf("passed\n"); + return 0; + } + + printf("failed\n"); + return 1; +} + |