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
d3498991
Commit
d3498991
authored
Nov 09, 2023
by
Umang Yadav
Browse files
Rename NumericLimits to numeric_limits
parent
b88c3f30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/include/migraphx/migraphx_float8.hpp
src/include/migraphx/migraphx_float8.hpp
+6
-6
No files found.
src/include/migraphx/migraphx_float8.hpp
View file @
d3498991
...
...
@@ -97,7 +97,7 @@ enum class hip_f8_type
};
template
<
typename
T
>
class
N
umeric
L
imits
;
class
n
umeric
_l
imits
;
template
<
migraphx_fp8
::
hip_f8_type
T
=
migraphx_fp8
::
hip_f8_type
::
fp8
>
struct
hip_f8
...
...
@@ -395,7 +395,7 @@ struct hip_f8
inline
MIGRAPHX_HIP_HOST_DEVICE
constexpr
bool
operator
==
(
const
hip_f8
&
rhs
)
const
{
if
((
rhs
.
is_zero
()
&&
this
->
is_zero
())
||
(
fabs
(
rhs
-
*
this
)
<
migraphx_fp8
::
N
umeric
L
imits
<
hip_f8
<
T
>>::
epsilon
()))
(
fabs
(
rhs
-
*
this
)
<
migraphx_fp8
::
n
umeric
_l
imits
<
hip_f8
<
T
>>::
epsilon
()))
return
true
;
else
if
(
rhs
.
is_nan
()
||
rhs
.
is_inf
()
||
this
->
is_nan
()
||
this
->
is_inf
())
return
false
;
...
...
@@ -471,7 +471,7 @@ MIGRAPHX_HIP_HOST_DEVICE constexpr T F8_Lowest()
using
fp8e4m3fnuz
=
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>
;
template
<
>
class
N
umeric
L
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
class
n
umeric
_l
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
{
public:
// TODO :figure out epsilon in Hex to make it constexpr
...
...
@@ -517,7 +517,7 @@ class NumericLimits<migraphx_fp8::hip_f8<migraphx_fp8::hip_f8_type::fp8>>
};
template
<
>
class
N
umeric
L
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>>
class
n
umeric
_l
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>>
{
public:
static
constexpr
MIGRAPHX_HIP_HOST_DEVICE
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>
...
...
@@ -633,13 +633,13 @@ inline bool isnan(migraphx_fp8::hip_f8<migraphx_fp8::hip_f8_type::bf8> x) // NOL
template
<
>
class
numeric_limits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
:
public
migraphx_fp8
::
N
umeric
L
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
:
public
migraphx_fp8
::
n
umeric
_l
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
{
};
template
<
>
class
numeric_limits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>>
:
public
migraphx_fp8
::
N
umeric
L
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>>
:
public
migraphx_fp8
::
n
umeric
_l
imits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>>
{
};
...
...
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