Commit 770b632d authored by Umang Yadav's avatar Umang Yadav
Browse files

clang fixes

parent 3b0c7dc8
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP #ifndef MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP
#define MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP #define MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP
#if defined(__clang__) and !defined(__GNUC__) #if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast" #pragma clang diagnostic ignored "-Wold-style-cast"
#pragma clang diagnostic ignored "-Wfloat-equal" #pragma clang diagnostic ignored "-Wfloat-equal"
...@@ -604,7 +604,7 @@ struct common_type<migraphx_fp8::fp8e4m3fnuz, migraphx_fp8::fp8e4m3fnuz> ...@@ -604,7 +604,7 @@ struct common_type<migraphx_fp8::fp8e4m3fnuz, migraphx_fp8::fp8e4m3fnuz>
} // namespace std } // namespace std
// ================================================================================================= // =================================================================================================
#if defined(__clang__) and !defined(__GNUC__) #if defined(__clang__)
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#endif // MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP #endif // MIGRAPHX_GUARD_RTGLIB_FLOAT8_HPP
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef MIGRAPHX_HIP_FP8_IMPL_HPP #ifndef MIGRAPHX_HIP_FP8_IMPL_HPP
#define MIGRAPHX_HIP_FP8_IMPL_HPP #define MIGRAPHX_HIP_FP8_IMPL_HPP
#if !defined(__GNUC__) #if defined(__clang__)
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier" #pragma clang diagnostic ignored "-Wreserved-identifier"
#endif #endif
...@@ -313,7 +313,7 @@ MIGRAPHX_HIP_HOST_DEVICE constexpr T cast_from_f8(uint8_t x) ...@@ -313,7 +313,7 @@ MIGRAPHX_HIP_HOST_DEVICE constexpr T cast_from_f8(uint8_t x)
} }
} // namespace migraphx_hip_f8_impl } // namespace migraphx_hip_f8_impl
#if !defined(__GNUC__) #if defined(__clang__)
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#endif // MIGRAPHX_HIP_FP8_IMPL_HPP #endif // MIGRAPHX_HIP_FP8_IMPL_HPP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment