[all-commits] [llvm/llvm-project] c2019c: [OpenMP] [test] Fix target_thread_limit.cpp to not...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Sep 1 12:16:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2019c416c8d7ec50aec6ac6b82c9aa4e99b0f6f
      https://github.com/llvm/llvm-project/commit/c2019c416c8d7ec50aec6ac6b82c9aa4e99b0f6f
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-09-01 (Fri, 01 Sep 2023)

  Changed paths:
    M openmp/runtime/test/target/target_thread_limit.cpp

  Log Message:
  -----------
  [OpenMP] [test] Fix target_thread_limit.cpp to not assume 4 or more cores

Previously, the test ran a section with

    #pragma omp target thread_limit(4)

and expected it to execute exactly 4 times, even though it would
in practice execute min(cores, 4) times.

Increment a counter and check that it executed 1-4 times.

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




More information about the All-commits mailing list