llvm-project/openmp/runtime/src
Joachim Protze 9be9cf20bf [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions
implicit_task_end callbacks in nested parallel regions did not always give the
correct thread_num, since the inner parallel region may have already been
finalized.
Now, the thread_num is stored at the beginning of the implicit task and
retrieved at the end, whenever necessary.

A testcase was added as well.

Differential Revision: https://reviews.llvm.org/D46260

llvm-svn: 331632
2018-05-07 12:42:21 +00:00
..
i18n Fix trademarks found by scanner 2018-01-04 22:56:47 +00:00
include Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
thirdparty/ittnotify OpenMP RTL cleanup: eliminated warnings with -Wcast-qual, patch 2. 2017-07-17 09:03:14 +00:00
CMakeLists.txt [CMake] Refactor common settings and flags 2017-11-29 19:31:48 +00:00
dllexports Read OMP_TARGET_OFFLOAD and provide API to access ICV 2018-03-20 21:18:17 +00:00
exports_so.txt Introduce GOMP_taskloop API 2018-04-18 19:23:54 +00:00
extractExternal.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp.h [OpenMP] Fix affinity API for KMP_AFFINITY=none|compact|scatter 2018-04-18 19:25:48 +00:00
kmp_affinity.cpp [OpenMP] Fix affinity API for KMP_AFFINITY=none|compact|scatter 2018-04-18 19:25:48 +00:00
kmp_affinity.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_alloc.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_atomic.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_atomic.h [OMPT] Rename ompt_mutex_impl_t to kmp_mutex_impl 2018-01-17 10:06:01 +00:00
kmp_barrier.cpp [OMPT] Fix parallel_data in implicit barrier-end 2018-02-23 16:46:25 +00:00
kmp_cancel.cpp Update implementation of OMPT to the specification OpenMP 5.0 Preview 1 (TR4). 2017-11-01 10:08:30 +00:00
kmp_config.h.cmake Update implementation of OMPT to the specification OpenMP 5.0 Preview 1 (TR4). 2017-11-01 10:08:30 +00:00
kmp_csupport.cpp [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions 2018-05-07 12:42:21 +00:00
kmp_debug.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_debug.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_debugger.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_debugger.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_dispatch.cpp Fix some comments and formatting in kmp_dispatch.cpp 2018-01-04 23:05:26 +00:00
kmp_environment.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_environment.h Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_error.cpp Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_error.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_ftn_cdecl.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_ftn_entry.h [OpenMP] Fix affinity API for KMP_AFFINITY=none|compact|scatter 2018-04-18 19:25:48 +00:00
kmp_ftn_extra.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_ftn_os.h Introduce GOMP_taskloop API 2018-04-18 19:23:54 +00:00
kmp_ftn_stdcall.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_global.cpp Read OMP_TARGET_OFFLOAD and provide API to access ICV 2018-03-20 21:18:17 +00:00
kmp_gsupport.cpp [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions 2018-05-07 12:42:21 +00:00
kmp_i18n.cpp [OMPT] Omissionin in OMPT Formatting 2018-02-17 09:54:10 +00:00
kmp_i18n.h Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_import.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_io.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_io.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_itt.cpp Improve stability of the runtime in parent/child processes 2018-01-10 18:21:48 +00:00
kmp_itt.h Improve stability of the runtime in parent/child processes 2018-01-10 18:21:48 +00:00
kmp_itt.inl Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_lock.cpp Add missing memory barrier for queuing locks 2017-12-08 15:07:02 +00:00
kmp_lock.h Minor code cleanup 2018-01-10 18:24:09 +00:00
kmp_omp.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_os.h Introduce GOMP_taskloop API 2018-04-18 19:23:54 +00:00
kmp_platform.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_runtime.cpp [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions 2018-05-07 12:42:21 +00:00
kmp_safe_c_api.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_sched.cpp Introduce GOMP_taskloop API 2018-04-18 19:23:54 +00:00
kmp_settings.cpp [OpenMP] Fix affinity API for KMP_AFFINITY=none|compact|scatter 2018-04-18 19:25:48 +00:00
kmp_settings.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_stats.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_stats.h Cleanup version symbol macros and attributes/declspecs 2017-11-07 23:32:13 +00:00
kmp_stats_timing.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_stats_timing.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_str.cpp Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_str.h Remove const from variables with dynamic memory 2017-11-09 15:52:25 +00:00
kmp_stub.cpp Fixed build of the OpenMP stubs library. 2018-03-05 18:01:47 +00:00
kmp_stub.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_taskdeps.cpp [OMPT] Omissionin in OMPT Formatting 2018-02-17 09:54:10 +00:00
kmp_tasking.cpp Introduce GOMP_taskloop API 2018-04-18 19:23:54 +00:00
kmp_taskq.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_threadprivate.cpp Improve OpenMP threadprivate implementation. 2018-03-05 18:42:01 +00:00
kmp_utility.cpp Add const to some variables to avoid const_casts 2017-11-09 15:52:29 +00:00
kmp_version.cpp Fix trademarks found by scanner 2018-01-04 22:56:47 +00:00
kmp_version.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_wait_release.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_wait_release.h Update implementation of OMPT to the specification OpenMP 5.0 Preview 1 (TR4). 2017-11-01 10:08:30 +00:00
kmp_wrapper_getpid.h Apply formatting changes 2017-10-20 19:30:57 +00:00
kmp_wrapper_malloc.h Apply formatting changes 2017-10-20 19:30:57 +00:00
libomp.rc.var [OpenMP] [CMake] Removing expand-vars.pl in favor of CMake's configure_file() 2015-08-28 18:42:10 +00:00
ompt-event-specific.h Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
ompt-general.cpp Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
ompt-internal.h [OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions 2018-05-07 12:42:21 +00:00
ompt-specific.cpp Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
ompt-specific.h Set the license header for all OMPT files 2018-04-12 17:23:26 +00:00
test-touch.c
tsan_annotations.cpp Clang-format and whitespace cleanup of source code 2017-05-12 18:01:32 +00:00
tsan_annotations.h Clang-format and whitespace cleanup of source code 2017-05-12 18:01:32 +00:00
z_Linux_asm.S Rename z_Linux_asm.s to z_Linux_asm.S 2017-07-11 18:04:56 +00:00
z_Linux_util.cpp Minor cleanup in __kmp_atfork_child() 2018-03-30 19:55:11 +00:00
z_Windows_NT-586_asm.asm Clang-format and whitespace cleanup of source code 2017-05-12 18:01:32 +00:00
z_Windows_NT-586_util.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00
z_Windows_NT_util.cpp Apply formatting changes 2017-10-20 19:30:57 +00:00