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

Este commit está contenido en:
Yaxun (Sam) Liu
2019-09-30 01:10:42 -04:00
cometido por Maneesh Gupta
padre 4b413739a9
commit 56193a7828
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
+1
Ver fichero
@@ -223,6 +223,7 @@ THE SOFTWARE.
Enable_if_t<
std::is_floating_point<T>{} &&
!std::is_same<T, double>{}>* = nullptr>
__host__ __device__
operator T() const { return data; }
#endif
__host__ __device__