SWDEV-434362 - Replace __HIP_CLANG_ONLY__ as it is not supported on HIPRTC

__HIP_CLANG_ONLY__ is not recognized in HIPRTC, due to which some
math functions like amd_mixed_dot were not included in hiprtc builtins.

Change-Id: I1fe41e1ddc8911f6a5b5b1405dd4730d0170a4f7


[ROCm/clr commit: f0010f4fdb]
이 커밋은 다음에 포함됨:
Satyanvesh Dittakavi
2023-11-29 09:19:48 +00:00
부모 eec1e978f0
커밋 66b4a403a6
2개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
+1 -1
파일 보기
@@ -38,7 +38,7 @@ extern "C" __device__ int printf(const char *fmt, ...);
#else
template <typename... All>
static inline __device__ void printf(const char* format, All... all) {}
#endif // __HIP_CLANG_ONLY__
#endif
extern "C" __device__ unsigned long long __ockl_steadyctr_u64();
+1 -1
파일 보기
@@ -61,7 +61,7 @@ struct __numeric_type<_Float16>
#define __RETURN_TYPE bool
// DOT FUNCTIONS
#if __HIP_CLANG_ONLY__
#if defined(__clang__) && defined(__HIP__)
__DEVICE__
inline
int amd_mixed_dot(short2 a, short2 b, int c, bool saturate) {