HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-6.3.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__ && !__GFX7__ && !__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_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
62 #include <hip/amd_detail/amd_hip_runtime.h>
63 #elif !defined(__HIP_PLATFORM_AMD__) && 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__");
69 #if !defined(__HIPCC_RTC__)
Defines the API signatures for HIP runtime. This file can be compiled with a standard compiler.