clang 10.0.0git

__clang_openmp_math_declares.h
Go to the documentation of this file.
1 /*===---- __clang_openmp_math_declares.h - OpenMP math declares ------------===
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 *===-----------------------------------------------------------------------===
8 */
9
10 #ifndef __CLANG_OPENMP_MATH_DECLARES_H__
11 #define __CLANG_OPENMP_MATH_DECLARES_H__
12
13 #ifndef _OPENMP
14 #error "This file is for OpenMP compilation only."
15 #endif
16
17 #if defined(__NVPTX__) && defined(_OPENMP)
18
19 #define __CUDA__
20
21 #if defined(__cplusplus)
22 #include <__clang_cuda_math_forward_declares.h>
23 #endif
24
25 /// Include declarations for libdevice functions.
26 #include <__clang_cuda_libdevice_declares.h>
27 /// Provide definitions for these functions.
28 #include <__clang_cuda_device_functions.h>
29
30 #undef __CUDA__
31
32 #endif
33 #endif
__clang_cuda_device_functions.h
__clang_cuda_libdevice_declares.h
__clang_cuda_math_forward_declares.h