diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-02-25 18:04:09 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-02-25 18:04:09 +0000 |
| commit | 2851072d69af205fd8d2ef438db7e4848afb1592 (patch) | |
| tree | dcb52f43380903216be6c2b4002aa4a0c95b893d /openmp/runtime/src/kmp_ftn_os.h | |
| parent | 2a834115bf5caf0b3a2176dcec5ac4ca295e5332 (diff) | |
| download | bcm5719-llvm-2851072d69af205fd8d2ef438db7e4848afb1592.tar.gz bcm5719-llvm-2851072d69af205fd8d2ef438db7e4848afb1592.zip | |
Add initial support for OpenMP 4.5 task priority feature
The maximum task priority value is read from envirable: OMP_MAX_TASK_PRIORITY.
But as of now, nothing is done with it. We just handle the environment variable
and add the new api: omp_get_max_task_priority() which returns that value or
zero if it is not set.
Differential Revision: http://reviews.llvm.org/D17411
llvm-svn: 261908
Diffstat (limited to 'openmp/runtime/src/kmp_ftn_os.h')
| -rw-r--r-- | openmp/runtime/src/kmp_ftn_os.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_ftn_os.h b/openmp/runtime/src/kmp_ftn_os.h index 4b41260a9dd..d9157504cbc 100644 --- a/openmp/runtime/src/kmp_ftn_os.h +++ b/openmp/runtime/src/kmp_ftn_os.h @@ -113,6 +113,10 @@ #define FTN_GET_CANCELLATION_STATUS kmp_get_cancellation_status #endif +#if OMP_41_ENABLED + #define FTN_GET_MAX_TASK_PRIORITY omp_get_max_task_priority +#endif + #endif /* KMP_FTN_PLAIN */ /* ------------------------------------------------------------------------ */ @@ -210,6 +214,10 @@ #define FTN_GET_CANCELLATION_STATUS kmp_get_cancellation_status_ #endif +#if OMP_41_ENABLED + #define FTN_GET_MAX_TASK_PRIORITY omp_get_max_task_priority_ +#endif + #endif /* KMP_FTN_APPEND */ /* ------------------------------------------------------------------------ */ @@ -307,6 +315,10 @@ #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS #endif +#if OMP_41_ENABLED + #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY +#endif + #endif /* KMP_FTN_UPPER */ /* ------------------------------------------------------------------------ */ @@ -404,6 +416,10 @@ #define FTN_GET_CANCELLATION_STATUS KMP_GET_CANCELLATION_STATUS_ #endif +#if OMP_41_ENABLED + #define FTN_GET_MAX_TASK_PRIORITY OMP_GET_MAX_TASK_PRIORITY_ +#endif + #endif /* KMP_FTN_UAPPEND */ /* ------------------------------------------------------------------ */ |

