1 /*===- __clang_openmp_device_functions.h - OpenMP device function declares -===
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_DEVICE_FUNCTIONS_H__
11 #define __CLANG_OPENMP_DEVICE_FUNCTIONS_H__
14 #error "This file is for OpenMP compilation only."
17 #pragma omp begin declare variant match( \
18 device = {arch(nvptx, nvptx64)}, implementation = {extension(match_any)})
25 #define __OPENMP_NVPTX__
27 /// Include declarations for libdevice functions.
28 #include <__clang_cuda_libdevice_declares.h>
30 /// Provide definitions for these functions.
31 #include <__clang_cuda_device_functions.h>
33 #undef __OPENMP_NVPTX__
40 #pragma omp end declare variant