37 #ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_H 38 #define HIP_INCLUDE_HIP_HIP_RUNTIME_H 40 #if (__gfx1010__ || __gfx1011__ || __gfx1012__ || __gfx1030__ || __gfx1031__) && __AMDGCN_WAVEFRONT_SIZE == 64 41 #error HIP is not supported on GFX10 with wavefront size 64 44 #if !defined(__HIPCC_RTC__) 53 #if __cplusplus > 199711L 56 #endif // !defined(__HIPCC_RTC__) 58 #include <hip/hip_version.h> 59 #include <hip/hip_common.h> 61 #if (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__)) 63 #elif !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__)) 64 #include <hip/nvidia_detail/hip_runtime.h> 66 #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__"); 71 #if 0 // Temporarily disable deprecation warning as it will fail rocgdb test 72 #if defined(__clang__) 74 #pragma GCC diagnostic push 75 #pragma GCC diagnostic warning "-Wcpp" 77 #warning("__HCC__ is deprecated, please don't use it") 81 #warning("__HIP_ROCclr__ is deprecated, please don't use it") 84 #ifdef __HIP_PLATFORM_HCC__ 85 #warning("__HIP_PLATFORM_HCC__ is deprecated, please use __HIP_PLATFORM_AMD__ instead") 88 #ifdef __HIP_PLATFORM_NVCC_ 89 #warning("__HIP_PLATFORM_NVCC_ is deprecated, please use __HIP_PLATFORM_NVIDIA__ instead") 91 #pragma GCC diagnostic pop 92 #elif defined(__GNUC__) 95 #pragma message ("__HCC__ is deprecated, please don't use it") 99 #pragma message ("__HIP_ROCclr__ is deprecated, please don't use it") 102 #ifdef __HIP_PLATFORM_HCC__ 103 #pragma message ("__HIP_PLATFORM_HCC__ is deprecated, please use __HIP_PLATFORM_AMD__ instead") 106 #ifdef __HIP_PLATFORM_NVCC_ 107 #pragma message ("__HIP_PLATFORM_NVCC_ is deprecated, please use __HIP_PLATFORM_NVIDIA__ instead") 109 #endif // defined(__clang__) 112 #if !defined(__HIPCC_RTC__) 113 #include <hip/hip_runtime_api.h> 114 #include <hip/library_types.h> 115 #endif // !defined(__HIPCC_RTC__) 116 #include <hip/hip_vector_types.h> Contains definitions of APIs for HIP runtime.