[all-commits] [llvm/llvm-project] 124d36: [OpenMP][OMPT] Change OMPT kind for OpenMP test lo...

Joachim via All-commits all-commits at lists.llvm.org
Fri Jul 7 05:50:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 124d36e09332e28b807cdd38eb587a74335ce91e
      https://github.com/llvm/llvm-project/commit/124d36e09332e28b807cdd38eb587a74335ce91e
  Author: Joachim Jenke <jenke at itc.rwth-aachen.de>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    M openmp/runtime/src/kmp_csupport.cpp
    M openmp/runtime/test/ompt/callback.h
    M openmp/runtime/test/ompt/synchronization/test_lock.c
    M openmp/runtime/test/ompt/synchronization/test_nest_lock.c
    M openmp/runtime/test/ompt/synchronization/test_nest_lock_parallel.c

  Log Message:
  -----------
  [OpenMP][OMPT] Change OMPT kind for OpenMP test lock functions

The OpenMP specification mentions that omp_test_lock and
omp_test_nest_lock dispatch OMPT callbacks with ompt_mutex_test_lock
and ompt_mutex_test_nest_lock for their kind respectively. Previously,
the values ompt_mutex_lock and ompt_mutex_nest_lock were used. This
could cause issues in application relying on the kind to correctly
determine lock states. This commit changes the kind to the expected
ones.

Also update callback.h and OMPT tests to reflect this change.

Patch prepared by Thyre

Differential Review: https://reviews.llvm.org/D153028
Differential Review: https://reviews.llvm.org/D153031
Differential Review: https://reviews.llvm.org/D153032




More information about the All-commits mailing list