[all-commits] [llvm/llvm-project] 0012b9: [OpenMP][FIX] Move workaround code to avoid races

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Oct 26 14:38:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0012b956f9d59eba4f8df32716d8be13f12cdce2
      https://github.com/llvm/llvm-project/commit/0012b956f9d59eba4f8df32716d8be13f12cdce2
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/src/Kernel.cpp

  Log Message:
  -----------
  [OpenMP][FIX] Move workaround code to avoid races

The workaround code ensure we always call __kmpc_kernel_parallel, but it
did so in a racy manner as the initialization might not have been
completed yet. To avoid introducing a sync, we move the workaround into
the deinit function for now.


  Commit: 331085b469bb340d50859f48d49c7932801c0934
      https://github.com/llvm/llvm-project/commit/331085b469bb340d50859f48d49c7932801c0934
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
    M clang/test/OpenMP/nvptx_target_teams_distribute_simd_codegen.cpp

  Log Message:
  -----------
  [OpenMP][NFC] Clang format some tests


  Commit: 289a0f255dbe0a3cc7b31d9bd5992f648df3fb9d
      https://github.com/llvm/llvm-project/commit/289a0f255dbe0a3cc7b31d9bd5992f648df3fb9d
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.h
    M clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
    M clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
    M clang/test/OpenMP/nvptx_target_teams_distribute_simd_codegen.cpp

  Log Message:
  -----------
  [OpenMP] Remove SPMD specific handling during globalization

Globalization and SPMD are different things that used to be conflated.
Some leftover crossover interactions remain, trying to remove them now.


  Commit: ab34d71087a85a9d024657207683ea0eb775d326
      https://github.com/llvm/llvm-project/commit/ab34d71087a85a9d024657207683ea0eb775d326
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp

  Log Message:
  -----------
  [OpenMP][NFC] Remove untested code emitting no-op call


  Commit: 57cebc709df0ce839807b852432eccf345d8a63e
      https://github.com/llvm/llvm-project/commit/57cebc709df0ce839807b852432eccf345d8a63e
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/test/OpenMP/thread_limit_nvptx.c

  Log Message:
  -----------
  [OpenMP][NFC] Fix test (remove wrong autogen header)


Compare: https://github.com/llvm/llvm-project/compare/1f5a9d1d073b...57cebc709df0


More information about the All-commits mailing list