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
composable_kernel_ROCM
Commits
fd9ef4e6
"vscode:/vscode.git/clone" did not exist on "62854588d45c9bbaaef7db92724fbdc4c8e5c6a0"
Unverified
Commit
fd9ef4e6
authored
Aug 06, 2024
by
Juan Manuel Martinez Caamaño
Committed by
GitHub
Aug 06, 2024
Browse files
Add missing constexpr to if conditions (#1444)
parent
840c5397
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/ck/utility/f8_utils.hpp
include/ck/utility/f8_utils.hpp
+3
-2
No files found.
include/ck/utility/f8_utils.hpp
View file @
fd9ef4e6
...
...
@@ -165,7 +165,7 @@ In this case, the fp16 mantissa should be shift left by 1 */
if
(
out_exponent
>
max_exp
)
{
if
(
clip
)
if
constexpr
(
clip
)
{
mantissa
=
(
1
<<
out_mant
)
-
1
;
out_exponent
=
max_exp
;
...
...
@@ -235,7 +235,8 @@ __host__ __device__ Y run_cast_from_f8(X x)
return
(
mantissa
==
0
)
?
(
sign
?
NegInf
:
Inf
)
:
NaN
;
}
if
((
NumericUtils
<
Y
>::
mant
==
10
)
&&
(
NumericUtils
<
X
>::
mant
==
2
)
&&
!
negative_zero_nan
)
if
constexpr
((
NumericUtils
<
Y
>::
mant
==
10
)
&&
(
NumericUtils
<
X
>::
mant
==
2
)
&&
!
negative_zero_nan
)
{
retval
=
x
;
retval
<<=
8
;
...
...
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