Allow hip-clang to use amd_mixed_dot as well

[ROCm/hip commit: 8bf588bdb1]
This commit is contained in:
Aaron Enye Shi
2019-01-22 16:21:16 +00:00
förälder cb5b6f92bb
incheckning 67d0de2dba
4 ändrade filer med 4 tillägg och 4 borttagningar
@@ -1403,7 +1403,7 @@ THE SOFTWARE.
}
// Math functions
#if (__hcc_workweek__ >= 19015)
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
inline
__device__
float amd_mixed_dot(__half2 a, __half2 b, float c, bool saturate) {
@@ -53,7 +53,7 @@ extern "C"
typedef _Float16 __2f16 __attribute__((ext_vector_type(2)));
typedef short __2i16 __attribute__((ext_vector_type(2)));
#if (__hcc_workweek__ >= 19015)
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
__device__ __attribute__((const)) float __ockl_fdot2(__2f16 a, __2f16 b, float c, bool s);
#endif
@@ -121,7 +121,7 @@ uint64_t __make_mantissa(const char* tagp)
}
// DOT FUNCTIONS
#if (__hcc_workweek__ >= 19015)
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
__DEVICE__
inline
int amd_mixed_dot(short2 a, short2 b, int c, bool saturate) {
@@ -29,7 +29,7 @@ THE SOFTWARE.
#endif
// DOT FUNCTIONS
#if (__hcc_workweek__ >= 19015)
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
__device__
__attribute__((const))
int __ockl_sdot2(short2 a, short2 b, int c, bool s);