Back to top
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.7.1/include/hip/hip_common.h Source File
/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.7.1/include/hip/hip_common.h Source File
HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.7.1/include/hip/hip_common.h Source File
Go to the documentation of this file.
23 #ifndef HIP_INCLUDE_HIP_HIP_COMMON_H
24 #define HIP_INCLUDE_HIP_HIP_COMMON_H
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
33 #if defined(__clang__) && defined(__HIP__)
35 #ifndef __HIP_PLATFORM_HCC__
36 #define __HIP_PLATFORM_HCC__
39 #ifndef __HIP_PLATFORM_AMD__
40 #define __HIP_PLATFORM_AMD__
45 #if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__) && !defined(__HIP__))
47 #ifndef __HIP_PLATFORM_NVCC__
48 #define __HIP_PLATFORM_NVCC__
51 #ifndef __HIP_PLATFORM_NVIDIA__
52 #define __HIP_PLATFORM_NVIDIA__
62 #if (defined(__HCC_ACCELERATOR__) && __HCC_ACCELERATOR__ != 0) || \
63 (defined(__CUDA_ARCH__) && __CUDA_ARCH__ != 0)
64 #define __HIP_DEVICE_COMPILE__ 1
68 #define HIP_PUBLIC_API __attribute__ ((visibility ("default")))
69 #define HIP_INTERNAL_EXPORTED_API __attribute__ ((visibility ("default")))
72 #define HIP_INTERNAL_EXPORTED_API
75 #if __HIP_DEVICE_COMPILE__ == 0
77 #define __HIP_ARCH_HAS_GLOBAL_INT32_ATOMICS__ (0)
78 #define __HIP_ARCH_HAS_GLOBAL_FLOAT_ATOMIC_EXCH__ (0)
79 #define __HIP_ARCH_HAS_SHARED_INT32_ATOMICS__ (0)
80 #define __HIP_ARCH_HAS_SHARED_FLOAT_ATOMIC_EXCH__ (0)
81 #define __HIP_ARCH_HAS_FLOAT_ATOMIC_ADD__ (0)
84 #define __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__ (0)
85 #define __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__ (0)
88 #define __HIP_ARCH_HAS_DOUBLES__ (0)
91 #define __HIP_ARCH_HAS_WARP_VOTE__ (0)
92 #define __HIP_ARCH_HAS_WARP_BALLOT__ (0)
93 #define __HIP_ARCH_HAS_WARP_SHUFFLE__ (0)
94 #define __HIP_ARCH_HAS_WARP_FUNNEL_SHIFT__ (0)
97 #define __HIP_ARCH_HAS_THREAD_FENCE_SYSTEM__ (0)
98 #define __HIP_ARCH_HAS_SYNC_THREAD_EXT__ (0)
101 #define __HIP_ARCH_HAS_SURFACE_FUNCS__ (0)
102 #define __HIP_ARCH_HAS_3DGRID__ (0)
103 #define __HIP_ARCH_HAS_DYNAMIC_PARALLEL__ (0)
106 #if defined(__clang__)
107 #pragma clang diagnostic pop