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
9e24e2bc
"...composable_kernel_rocm.git" did not exist on "7efafa1169e1d57af2c605861e7770795300aca2"
Commit
9e24e2bc
authored
May 12, 2023
by
Rostyslav Geyyer
Browse files
Minor fix
parent
be7e055e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+1
-1
No files found.
include/ck/utility/data_type.hpp
View file @
9e24e2bc
...
@@ -1058,7 +1058,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, int8_t>(int8_
...
@@ -1058,7 +1058,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, int8_t>(int8_
// cast fp32 to fp8
// cast fp32 to fp8
template
<
bool
negative_zero_nan
,
bool
clip
,
bool
stoch
>
template
<
bool
negative_zero_nan
,
bool
clip
,
bool
stoch
>
__host__
__device__
f
p
8_t
cast_to_f8
(
float
x
,
uint32_t
rng
)
__host__
__device__
f8_t
cast_to_f8
(
float
x
,
uint32_t
rng
)
{
{
// fp8 exponent/mantissa layout
// fp8 exponent/mantissa layout
constexpr
int
we_f8
=
4
;
constexpr
int
we_f8
=
4
;
...
...
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