Go to the documentation of this file.
9#ifndef __CLANG_LLVM_LIBC_WRAPPERS_STDLIB_H__
10#define __CLANG_LLVM_LIBC_WRAPPERS_STDLIB_H__
12#if !defined(_OPENMP) && !defined(__HIP__) && !defined(__CUDA__)
13#error "This file is for GPU offloading compilation only"
16#include_next <stdlib.h>
18#if defined(__HIP__) || defined(__CUDA__)
19#define __LIBC_ATTRS __attribute__((device))
24#pragma omp begin declare target
28#pragma omp end declare target