SWDEV-412457 - remove unused standard headers (#97)
Change-Id: I0801701f0743a2b7da56696052291f60d693c24b Co-authored-by: Chaudhary, Jatin Jaikishan <JatinJaikishan.Chaudhary@amd.com>
Este cometimento está contido em:
cometido por
GitHub
ascendente
893718cdd7
cometimento
e3cb5399cc
@@ -25,18 +25,17 @@ THE SOFTWARE.
|
||||
|
||||
#if !defined(__HIPCC_RTC__)
|
||||
#include <hip/hip_common.h>
|
||||
#if __cplusplus
|
||||
#include <cstdlib>
|
||||
#else
|
||||
#include <stdlib.h> // size_t
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
|
||||
#include "driver_types.h"
|
||||
#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
|
||||
* @{
|
||||
|
||||
@@ -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
|
||||
// paths to provide a consistent include env and avoid "missing symbol" errors that only appears
|
||||
// on NVCC path:
|
||||
#if __cplusplus
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if __cplusplus > 199711L
|
||||
#include <thread>
|
||||
#endif
|
||||
#endif // __cplusplus
|
||||
#endif // !defined(__HIPCC_RTC__)
|
||||
|
||||
#include <hip/hip_version.h>
|
||||
|
||||
@@ -31,7 +31,16 @@ THE SOFTWARE.
|
||||
#ifndef 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_common.h>
|
||||
#include <hip/linker_types.h>
|
||||
@@ -574,8 +583,6 @@ enum hipGPUDirectRDMAWritesOrdering {
|
||||
|
||||
#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#ifndef GENERIC_GRID_LAUNCH
|
||||
#define GENERIC_GRID_LAUNCH 1
|
||||
#endif
|
||||
|
||||
@@ -28,12 +28,16 @@ THE SOFTWARE.
|
||||
#include <hip/nvidia_detail/nvidia_hiprtc.h>
|
||||
#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstdlib>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#pragma GCC visibility push(default)
|
||||
#endif
|
||||
|
||||
@@ -43,7 +43,6 @@ THE SOFTWARE.
|
||||
* *
|
||||
*******************************************************************************/
|
||||
#if !defined(__HIPCC_RTC__)
|
||||
#include <limits.h>
|
||||
#include <hip/channel_descriptor.h>
|
||||
#include <hip/driver_types.h>
|
||||
#endif // !defined(__HIPCC_RTC__)
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador