include/hip/hip_common.h Source File
include/hip/hip_common.h Source File
HIP Runtime API Reference: include/hip/hip_common.h Source File
Go to the documentation of this file.
7#ifndef HIP_INCLUDE_HIP_HIP_COMMON_H
8#define HIP_INCLUDE_HIP_HIP_COMMON_H
11#pragma clang diagnostic push
12#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
17#if defined(__clang__) && defined(__HIP__)
18#ifndef __HIP_PLATFORM_AMD__
19#define __HIP_PLATFORM_AMD__
24#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__) && !defined(__HIP__))
25#ifndef __HIP_PLATFORM_NVIDIA__
26#define __HIP_PLATFORM_NVIDIA__
36#if (defined(__HCC_ACCELERATOR__) && __HCC_ACCELERATOR__ != 0) || \
37 (defined(__CUDA_ARCH__) && __CUDA_ARCH__ != 0)
38#define __HIP_DEVICE_COMPILE__ 1
42#define HIP_PUBLIC_API __attribute__((visibility("default")))
43#define HIP_INTERNAL_EXPORTED_API __attribute__((visibility("default")))
46#define HIP_INTERNAL_EXPORTED_API
49#if __HIP_DEVICE_COMPILE__ == 0
51#define __HIP_ARCH_HAS_GLOBAL_INT32_ATOMICS__ (0)
52#define __HIP_ARCH_HAS_GLOBAL_FLOAT_ATOMIC_EXCH__ (0)
53#define __HIP_ARCH_HAS_SHARED_INT32_ATOMICS__ (0)
54#define __HIP_ARCH_HAS_SHARED_FLOAT_ATOMIC_EXCH__ (0)
55#define __HIP_ARCH_HAS_FLOAT_ATOMIC_ADD__ (0)
58#define __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__ (0)
59#define __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__ (0)
62#define __HIP_ARCH_HAS_DOUBLES__ (0)
65#define __HIP_ARCH_HAS_WARP_VOTE__ (0)
66#define __HIP_ARCH_HAS_WARP_BALLOT__ (0)
67#define __HIP_ARCH_HAS_WARP_SHUFFLE__ (0)
68#define __HIP_ARCH_HAS_WARP_FUNNEL_SHIFT__ (0)
71#define __HIP_ARCH_HAS_THREAD_FENCE_SYSTEM__ (0)
72#define __HIP_ARCH_HAS_SYNC_THREAD_EXT__ (0)
75#define __HIP_ARCH_HAS_SURFACE_FUNCS__ (0)
76#define __HIP_ARCH_HAS_3DGRID__ (0)
77#define __HIP_ARCH_HAS_DYNAMIC_PARALLEL__ (0)
81#pragma clang diagnostic pop