Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f975c633
Commit
f975c633
authored
Nov 17, 2023
by
Umang Yadav
Browse files
Remove clang diagnostics
parent
aed1922b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
+1
-8
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/float8.hpp
View file @
f975c633
...
...
@@ -22,10 +22,6 @@
#ifndef MIGRAPHX_GUARD_KERNELS_FLOAT8_HPP
#define MIGRAPHX_GUARD_KERNELS_FLOAT8_HPP
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++20-extensions"
#endif // __clang__
#define MIGRAPHX_HIP_DEVICE __device__
...
...
@@ -74,7 +70,7 @@ struct float8
template
<
bool
stochastic_rounding
=
false
>
static
constexpr
MIGRAPHX_HIP_DEVICE
uint8_t
cast_to_f8_from_f32
(
float
v
,
uint32_t
rng
=
0
)
{
uint8_t
i8data
;
uint8_t
i8data
=
0x00
;
union
{
float
fval
;
...
...
@@ -484,7 +480,4 @@ class numeric_limits<fp8e5m2>
}
// namespace fp8
}
// namespace migraphx
// =================================================================================================
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif // MIGRAPHX_GUARD_KERNELS_FLOAT8_HPP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment