SWDEV-425490 - Move ptrdiff_t & clock_t to hiprtc.cmake.
Change-Id: I7c8ce3c1b8cb11e0253b0f51ae10fca7f0a32017
[ROCm/clr commit: 7150b2eaad]
This commit is contained in:
committed by
Jaydeepkumar Patel
parent
fcfa0d0733
commit
90e078b5f4
@@ -93,19 +93,11 @@ typedef unsigned int uint32_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
typedef signed int int32_t;
|
||||
typedef signed long long int64_t;
|
||||
#if defined(__GLIBCXX__)
|
||||
typedef long int ptrdiff_t;
|
||||
#else
|
||||
typedef long long ptrdiff_t;
|
||||
#endif
|
||||
typedef long clock_t;
|
||||
namespace std {
|
||||
using ::uint32_t;
|
||||
using ::uint64_t;
|
||||
using ::int32_t;
|
||||
using ::int64_t;
|
||||
using ::ptrdiff_t;
|
||||
using ::clock_t;
|
||||
}
|
||||
#endif // __HIP_NO_STD_DEFS__
|
||||
#endif // !defined(__HIPCC_RTC__)
|
||||
|
||||
@@ -59,6 +59,18 @@ function(get_hiprtc_macros HIPRTC_DEFINES)
|
||||
#define _HIP_BFLOAT16_H_\n\
|
||||
#define HIP_INCLUDE_HIP_MATH_FUNCTIONS_H\n\
|
||||
#define HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H\n\
|
||||
#if !__HIP_NO_STD_DEFS__\n\
|
||||
#if defined(__HIPRTC_PTRDIFF_T_IS_LONG_LONG__) && __HIPRTC_PTRDIFF_T_IS_LONG_LONG__==1\n\
|
||||
typedef long long ptrdiff_t;\n\
|
||||
#else\n\
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;\n\
|
||||
#endif\n\
|
||||
typedef long clock_t;\n\
|
||||
namespace std {\n\
|
||||
using ::ptrdiff_t;\n\
|
||||
using ::clock_t;\n\
|
||||
}\n\
|
||||
#endif // __HIP_NO_STD_DEFS__\n\
|
||||
#pragma clang diagnostic pop"
|
||||
PARENT_SCOPE)
|
||||
endfunction(get_hiprtc_macros)
|
||||
|
||||
Reference in New Issue
Block a user