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
4a50b93a
Commit
4a50b93a
authored
Oct 16, 2024
by
Andriy Roshchenko
Browse files
Fix compilation error for gfx942 architecture.
parent
7f7d47ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/ck/utility/amd_ck_fp8.hpp
include/ck/utility/amd_ck_fp8.hpp
+4
-4
No files found.
include/ck/utility/amd_ck_fp8.hpp
View file @
4a50b93a
...
...
@@ -276,7 +276,7 @@ struct f8_ocp_t
__host__
explicit
operator
float
()
const
#endif
{
#if
CK_FP8_CVT_FAST_PATH
#if
defined(__gfx950__) || defined(__gfx1200__) || defined(__gfx1201__)
return
fp8_impl
::
cast_to_f32_from_f8
<
default_interpret
>
(
this
->
data
);
#else
return
fp8_impl
::
cast_from_f8
<
float
,
wm
,
we
,
false
>
(
...
...
@@ -290,7 +290,7 @@ struct f8_ocp_t
__host__
explicit
operator
_Float16
()
const
#endif
{
#if
CK_FP8_CVT_FAST_PATH
#if
defined(__gfx950__) || defined(__gfx1200__) || defined(__gfx1201__)
return
static_cast
<
_Float16
>
(
fp8_impl
::
cast_to_f32_from_f8
<
default_interpret
>
(
this
->
data
));
#else
return
fp8_impl
::
cast_from_f8
<
_Float16
,
wm
,
we
,
false
>
(
...
...
@@ -322,7 +322,7 @@ struct bf8_ocp_t
__host__
explicit
operator
float
()
const
#endif
{
#if
CK_FP8_CVT_FAST_PATH
#if
defined(__gfx950__) || defined(__gfx1200__) || defined(__gfx1201__)
return
fp8_impl
::
cast_to_f32_from_f8
<
default_interpret
>
(
this
->
data
);
#else
return
fp8_impl
::
cast_from_f8
<
float
,
wm
,
we
,
false
>
(
...
...
@@ -336,7 +336,7 @@ struct bf8_ocp_t
__host__
explicit
operator
_Float16
()
const
#endif
{
#if
CK_FP8_CVT_FAST_PATH
#if
defined(__gfx950__) || defined(__gfx1200__) || defined(__gfx1201__)
return
static_cast
<
_Float16
>
(
fp8_impl
::
cast_to_f32_from_f8
<
default_interpret
>
(
this
->
data
));
#else
return
fp8_impl
::
cast_from_f8
<
_Float16
,
wm
,
we
,
false
>
(
...
...
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