2
0

Fix cast of __half for HIP-clang (#1475)

Este cometimento está contido em:
Yaxun (Sam) Liu
2019-09-30 01:10:42 -04:00
cometido por Maneesh Gupta
ascendente 4b413739a9
cometimento 56193a7828
2 ficheiros modificados com 6 adições e 0 eliminações
+5
Ver ficheiro
@@ -30,6 +30,11 @@ THE SOFTWARE.
#if __HIP_ARCH_GFX803__ || __HIP_ARCH_GFX900__ || __HIP_ARCH_GFX906__ || __HIP_ARCH_GFX908__
__device__ void test_convert() {
__half x;
float y = (float)x;
}
__global__
void __halfMath(bool* result, __half a) {
result[0] = __heq(__hadd(a, __half{1}), __half{2});