Skip to content

Commit

Permalink
Fix Windows + MSVC build.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVlx committed Sep 12, 2023
1 parent cedc802 commit 6044e59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/hip/hip_fp16.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@
#include "hip_vector_types.h"

#include <algorithm>
#include <type_traits>

using __half = hip::detail::half;
using __half2 = hip::detail::half2;

#if defined(_MSC_VER) // TODO: remove kludge.
namespace std
{
template<> inline constexpr auto is_floating_point_v<__half> = true;
} // Namespace std.
#endif

// BEGIN __HALF INTRINSICS
inline
__half __habs(__half x) noexcept
Expand Down

0 comments on commit 6044e59

Please sign in to comment.