1 /*===---- openmp_wrapper/stdlib.h ------ OpenMP math.h intercept ----- c++ -===
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
7 *===-----------------------------------------------------------------------===
10 #ifndef __CLANG_OPENMP_STDLIB_H__
11 #define __CLANG_OPENMP_STDLIB_H__
14 #error "This file is for OpenMP compilation only."
17 #include_next <stdlib.h>
20 #pragma omp begin declare variant match(device = {arch(amdgcn)})
22 #define __OPENMP_AMDGCN__
23 #include <__clang_hip_stdlib.h>
24 #undef __OPENMP_AMDGCN__
26 #pragma omp end declare variant
29 #endif // __CLANG_OPENMP_STDLIB_H__