diff options
| author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-09-29 16:02:17 +0000 |
|---|---|---|
| committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-09-29 16:02:17 +0000 |
| commit | a743c04412090f0612218e95f1982c9d75061a1c (patch) | |
| tree | 17101cf277ef5b9ca0f18fc87715777bc1c9d333 /llvm/lib/Target/BPF/BPFTargetMachine.cpp | |
| parent | 54d31ef87e6e50fcad6efe0be4f652e32b21f496 (diff) | |
| download | bcm5719-llvm-a743c04412090f0612218e95f1982c9d75061a1c.tar.gz bcm5719-llvm-a743c04412090f0612218e95f1982c9d75061a1c.zip | |
[libomptarget-nvptx] Fix number of threads in parallel
If there is no num_threads() clause we must consider the
nthreads-var ICV. Its value is set by omp_set_num_threads()
and can be queried using omp_get_max_num_threads().
The rewritten code now closely resembles the algorithm given
in the OpenMP standard.
Differential Revision: https://reviews.llvm.org/D51783
llvm-svn: 343380
Diffstat (limited to 'llvm/lib/Target/BPF/BPFTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions

