Warning: This file is not a C or C++ file. It does not have highlighting.
1 | /*===---- openmp_wrapper/stdlib.h ------ OpenMP math.h intercept ----- c++ -=== |
---|---|
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_STDLIB_H__ |
11 | #define __CLANG_OPENMP_STDLIB_H__ |
12 | |
13 | #ifndef _OPENMP |
14 | #error "This file is for OpenMP compilation only." |
15 | #endif |
16 | |
17 | #include_next <stdlib.h> |
18 | |
19 | #ifdef __AMDGCN__ |
20 | #pragma omp begin declare variant match(device = {arch(amdgcn)}) |
21 | |
22 | #define __OPENMP_AMDGCN__ |
23 | #include <__clang_hip_stdlib.h> |
24 | #undef __OPENMP_AMDGCN__ |
25 | |
26 | #pragma omp end declare variant |
27 | #endif |
28 | |
29 | #endif // __CLANG_OPENMP_STDLIB_H__ |
30 |
Warning: This file is not a C or C++ file. It does not have highlighting.