added half2 support

Change-Id: I0f3b9b7037fed97e80ec99f5369c75a63f001aae
This commit is contained in:
Aditya Atluri
2016-12-14 14:18:48 -06:00
parent d78649b978
commit d2daf6ad75
3 changed files with 26 additions and 3 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ THE SOFTWARE.
#include"hip/hip_fp16.h"
#if __CLANG_VERSION__ == 35
static const unsigned sign_val = 0x8000;
static const __half __half_value_one_float = {0x3C00};
@@ -373,4 +374,4 @@ __device__ __half2 __lowhigh2highlow(const __half2 a){
__device__ __half2 __low2half2(const __half2 a, const __half2 b){
return {a.q, b.q};
}
#endif