Commit c2019c41 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

[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
parent a23b9b7e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment