SWDEV-412457 - remove unused standard headers (#97)
Change-Id: I0801701f0743a2b7da56696052291f60d693c24b Co-authored-by: Chaudhary, Jatin Jaikishan <JatinJaikishan.Chaudhary@amd.com>
Этот коммит содержится в:
@@ -25,18 +25,17 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
#if !defined(__HIPCC_RTC__)
|
#if !defined(__HIPCC_RTC__)
|
||||||
#include <hip/hip_common.h>
|
#include <hip/hip_common.h>
|
||||||
|
#if __cplusplus
|
||||||
|
#include <cstdlib>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h> // size_t
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
|
#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
|
||||||
#include "driver_types.h"
|
#include "driver_types.h"
|
||||||
#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
||||||
|
|
||||||
#if !defined(__HIPCC_RTC__)
|
|
||||||
#ifndef __cplusplus
|
|
||||||
#include <stdbool.h>
|
|
||||||
#endif
|
|
||||||
#endif // !defined(__HIPCC_RTC__)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup DriverTypes Driver Types
|
* @defgroup DriverTypes Driver Types
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@@ -45,14 +45,13 @@ THE SOFTWARE.
|
|||||||
// Some standard header files, these are included by hc.hpp and so want to make them avail on both
|
// Some standard header files, these are included by hc.hpp and so want to make them avail on both
|
||||||
// paths to provide a consistent include env and avoid "missing symbol" errors that only appears
|
// paths to provide a consistent include env and avoid "missing symbol" errors that only appears
|
||||||
// on NVCC path:
|
// on NVCC path:
|
||||||
|
#if __cplusplus
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdlib>
|
||||||
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#endif // __cplusplus
|
||||||
|
|
||||||
#if __cplusplus > 199711L
|
|
||||||
#include <thread>
|
|
||||||
#endif
|
|
||||||
#endif // !defined(__HIPCC_RTC__)
|
#endif // !defined(__HIPCC_RTC__)
|
||||||
|
|
||||||
#include <hip/hip_version.h>
|
#include <hip/hip_version.h>
|
||||||
|
|||||||
@@ -31,7 +31,16 @@ THE SOFTWARE.
|
|||||||
#ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
|
#ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
|
||||||
#define HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
|
#define HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
|
||||||
|
|
||||||
#include <string.h> // for getDeviceProp
|
#if __cplusplus
|
||||||
|
#include <climits>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdlib>
|
||||||
|
#else
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <hip/hip_version.h>
|
#include <hip/hip_version.h>
|
||||||
#include <hip/hip_common.h>
|
#include <hip/hip_common.h>
|
||||||
#include <hip/linker_types.h>
|
#include <hip/linker_types.h>
|
||||||
@@ -574,8 +583,6 @@ enum hipGPUDirectRDMAWritesOrdering {
|
|||||||
|
|
||||||
#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#ifndef GENERIC_GRID_LAUNCH
|
#ifndef GENERIC_GRID_LAUNCH
|
||||||
#define GENERIC_GRID_LAUNCH 1
|
#define GENERIC_GRID_LAUNCH 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,12 +28,16 @@ THE SOFTWARE.
|
|||||||
#include <hip/nvidia_detail/nvidia_hiprtc.h>
|
#include <hip/nvidia_detail/nvidia_hiprtc.h>
|
||||||
#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cstdlib>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#pragma GCC visibility push(default)
|
#pragma GCC visibility push(default)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ THE SOFTWARE.
|
|||||||
* *
|
* *
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#if !defined(__HIPCC_RTC__)
|
#if !defined(__HIPCC_RTC__)
|
||||||
#include <limits.h>
|
|
||||||
#include <hip/channel_descriptor.h>
|
#include <hip/channel_descriptor.h>
|
||||||
#include <hip/driver_types.h>
|
#include <hip/driver_types.h>
|
||||||
#endif // !defined(__HIPCC_RTC__)
|
#endif // !defined(__HIPCC_RTC__)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user