llvm-project/clang/lib/Headers/openmp_wrappers
Johannes Doerfert 7f1e6fcff9 [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in wrapper headers
Due to recent changes we cannot use OpenMP in CUDA files anymore
(PR45533) as the math handling of CUDA is different when _OPENMP is
defined. We actually want this different behavior only if we are
offloading with OpenMP to NVIDIA, thus generating NVPTX. With this patch
we do not interfere with the CUDA math handling except if we are in
NVPTX offloading mode, as indicated by the presence of __OPENMP_NVPTX__.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D78155
2020-07-10 18:53:34 -05:00
..
__clang_openmp_device_functions.h [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in wrapper headers 2020-07-10 18:53:34 -05:00
cmath [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in wrapper headers 2020-07-10 18:53:34 -05:00
complex [OpenMP] Initial support for std::complex in target regions 2020-07-08 17:33:59 -05:00
complex.h [OpenMP] Initial support for std::complex in target regions 2020-07-08 17:33:59 -05:00
math.h [OpenMP] Use __OPENMP_NVPTX__ instead of _OPENMP in wrapper headers 2020-07-10 18:53:34 -05:00
new [OPENMP][NVPTX]Add NVPTX specific definitions for new/delete operators. 2020-02-05 09:57:53 -05:00
time.h [OpenMP] Provide math functions in OpenMP device code via OpenMP variants 2020-04-07 23:33:24 -05:00