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

This commit is contained in:
Yaxun (Sam) Liu
2019-09-30 01:10:42 -04:00
committed by Maneesh Gupta
parent 4b413739a9
commit 56193a7828
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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__