diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-07-10 17:11:29 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-07-10 18:53:34 -0500 |
commit | 7f1e6fcff9427adfa8efa3bfeeeac801da788b87 (patch) | |
tree | 1f98f6bf14635a4ae3d149a81c7a3621b761f15e /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | 881af6eb0030986876d3b80668193e5c3c04a87c (diff) | |
download | llvm-7f1e6fcff9427adfa8efa3bfeeeac801da788b87.zip llvm-7f1e6fcff9427adfa8efa3bfeeeac801da788b87.tar.gz llvm-7f1e6fcff9427adfa8efa3bfeeeac801da788b87.tar.bz2 |
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions