Add tests for dot functions

[ROCm/hip commit: 1d70f4217e]
This commit is contained in:
Aaron Enye Shi
2019-01-22 22:32:28 +00:00
parent 7e22b05339
commit b1d61f076f
2 changed files with 74 additions and 0 deletions
@@ -156,6 +156,11 @@ void __half2Test(bool* result, __half2 a) {
result[0] = (a >= a) && result[0];
result[0] = !(a < a) && result[0];
result[0] = !(a > a) && result[0];
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
// Dot Functions
result[0] = to_bool(amd_mixed_dot(a, a, 1, 1)) && result[0];
#endif
}
#endif