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 52 #if __cplusplus > 199711L 56 #include <hip/hip_version.h> 57 #include <hip/hip_common.h> 59 #if (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__)) 61 #elif !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__)) 62 #include <hip/nvidia_detail/hip_runtime.h> 64 #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__"); 69 #if 0 // Temporarily disable deprecation warning as it will fail rocgdb test 70 #if defined(__clang__) 72 #pragma GCC diagnostic push 73 #pragma GCC diagnostic warning "-Wcpp" 75 #warning("__HCC__ is deprecated, please don't use it") 79 #warning("__HIP_ROCclr__ is deprecated, please don't use it") 82 #ifdef __HIP_PLATFORM_HCC__ 83 #warning("__HIP_PLATFORM_HCC__ is deprecated, please use __HIP_PLATFORM_AMD__ instead") 86 #ifdef __HIP_PLATFORM_NVCC_ 87 #warning("__HIP_PLATFORM_NVCC_ is deprecated, please use __HIP_PLATFORM_NVIDIA__ instead") 89 #pragma GCC diagnostic pop 90 #elif defined(__GNUC__) 93 #pragma message ("__HCC__ is deprecated, please don't use it") 97 #pragma message ("__HIP_ROCclr__ is deprecated, please don't use it") 100 #ifdef __HIP_PLATFORM_HCC__ 101 #pragma message ("__HIP_PLATFORM_HCC__ is deprecated, please use __HIP_PLATFORM_AMD__ instead") 104 #ifdef __HIP_PLATFORM_NVCC_ 105 #pragma message ("__HIP_PLATFORM_NVCC_ is deprecated, please use __HIP_PLATFORM_NVIDIA__ instead") 107 #endif // defined(__clang__) 110 #include <hip/hip_runtime_api.h> 111 #include <hip/hip_vector_types.h> 112 #include <hip/library_types.h> Contains definitions of APIs for HIP runtime.