HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-5.6.0/include/hip/hip_runtime.h Source File
Go to the documentation of this file.
37 #ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_H
38 #define HIP_INCLUDE_HIP_HIP_RUNTIME_H
40 #if __HIP_DEVICE_COMPILE__ && !__GFX8__ && !__GFX9__ && __AMDGCN_WAVEFRONT_SIZE == 64
41 #error HIP is not supported on the specified GPU ARCH with wavefront size 64
44 #if !defined(__HIPCC_RTC__)
53 #if __cplusplus > 199711L
58 #include <hip/hip_version.h>
61 #if (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
62 #include <hip/amd_detail/amd_hip_runtime.h>
63 #elif !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
64 #include <hip/nvidia_detail/nvidia_hip_runtime.h>
66 #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
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")
112 #if !defined(__HIPCC_RTC__)
Defines the API signatures for HIP runtime. This file can be compiled with a standard compiler.