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
Commits
3eaf0f83
Commit
3eaf0f83
authored
Nov 06, 2023
by
Rostyslav Geyyer
Browse files
Revert previous change
parent
e4c06ada
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ck/utility/type_convert.hpp
include/ck/utility/type_convert.hpp
+2
-2
No files found.
include/ck/utility/type_convert.hpp
View file @
3eaf0f83
...
@@ -131,8 +131,8 @@ inline __host__ __device__ float type_convert<float, f8_t>(f8_t x)
...
@@ -131,8 +131,8 @@ inline __host__ __device__ float type_convert<float, f8_t>(f8_t x)
#if defined(__gfx940__) || defined(__gfx941__) || defined(__gfx942__)
#if defined(__gfx940__) || defined(__gfx941__) || defined(__gfx942__)
float
fval
;
float
fval
;
uint32_t
i32val
=
static_cast
<
uint32_t
>
(
x
);
uint32_t
i32val
=
static_cast
<
uint32_t
>
(
x
);
//
fval = __builtin_amdgcn_cvt_f32_fp8(i32val, 0);
fval
=
__builtin_amdgcn_cvt_f32_fp8
(
i32val
,
0
);
asm
volatile
(
"v_cvt_f32_fp8 %0, %1 src0_sel:BYTE_0"
:
"=v"
(
fval
)
:
"v"
(
i32val
));
//
asm volatile("v_cvt_f32_fp8 %0, %1 src0_sel:BYTE_0" : "=v"(fval) : "v"(i32val));
return
fval
;
return
fval
;
#else
#else
constexpr
bool
negative_zero_nan
=
true
;
constexpr
bool
negative_zero_nan
=
true
;
...
...
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