Fix cast of __half for HIP-clang (#1475)
This commit is contained in:
committed by
Maneesh Gupta
parent
4b413739a9
commit
56193a7828
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user