include/hip/hip_runtime.h Source File# HIP Runtime API Reference: include/hip/hip_runtime.h Source File includehip hip_runtime.h Go to the documentation of this file. 1/* 2 * Copyright (c) Advanced Micro Devices, Inc., or its affiliates. 3 * 4 * SPDX-License-Identifier: MIT 5 */ 6 12// 16// 20 21#ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_H 22#define HIP_INCLUDE_HIP_HIP_RUNTIME_H 23 24#if !defined(__HIPCC_RTC__) 25// Some standard header files, these are included by hc.hpp and so want to make them avail on both 26// paths to provide a consistent include env and avoid "missing symbol" errors that only appears 27// on NVCC path: 28#if __cplusplus 29#include <cstdint> 30#include <cstdlib> 31#else 32#include <stdint.h> 33#include <stdlib.h> 34#endif // __cplusplus 35#endif // !defined(__HIPCC_RTC__) 36 37#include <hip/hip_version.h> 38#include <hip/hip_common.h> 39 40#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__) 41#include <hip/amd_detail/amd_hip_runtime.h> 42#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__) 43#include <hip/nvidia_detail/nvidia_hip_runtime.h> 44#else 45#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__"); 46#endif 47 48#if !defined(__HIPCC_RTC__) 49#include <hip/hip_runtime_api.h> 50#include <hip/library_types.h> 51#endif // !defined(__HIPCC_RTC__) 52#include <hip/hip_vector_types.h> 53 54#endif hip_common.h hip_runtime_api.hDefines the API signatures for HIP runtime. This file can be compiled with a standard compiler. hip_vector_types.h library_types.h