[Libomptarget] Add unroll flag to shared variables loop
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 23 Jul 2021 18:50:25 +0000 (14:50 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Fri, 23 Jul 2021 20:45:27 +0000 (16:45 -0400)
commite1dedecaa6f83223efde5e0bf98a8f070aa5d6a5
tree73cd4062b623c7e795071a2cd0de955a8e23dde8
parentd71fc323f998b0d2f063cfedf53a8d89f8857279
[Libomptarget] Add unroll flag to shared variables loop

Unrolling this loop provides better performance in practice because it is
executed on the device and is likely to be very small.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D106692
openmp/libomptarget/deviceRTLs/common/src/parallel.cu