Commit b1a95ef7 authored by Jonas Hahnfeld's avatar Jonas Hahnfeld
Browse files

[libomptarget-nvptx] loop: Determine if runtime uninitialized

The generic entry points for static loop scheduling previously
hardcoded that the runtime was initialized. This can be wrong if
the compiler analyzes that the runtime is not needed and calls
the init functions accordingly.

This didn't affect clang-ykt because they have entry points for
different combinations of SPMD x Runtime not needed. I didn't do
measurements yet but with inlining we might get away with always
calling the generic interface and letting compiler and runtime
figure out the rest.
In any case, a correct runtime is always better than having
functions that may only be called if previous calls passed in
a specific set of arguments!

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@333285 91177308-0d34-0410-b5e6-96231b3b80d8
parent 15592a1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment