brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · d607469 Raw
30 lines · c
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-exception6 *7 *===-----------------------------------------------------------------------===8 */9 10#ifndef __CLANG_OPENMP_STDLIB_H__11#define __CLANG_OPENMP_STDLIB_H__12 13#ifndef _OPENMP14#error "This file is for OpenMP compilation only."15#endif16 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 variant27#endif28 29#endif // __CLANG_OPENMP_STDLIB_H__30