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
653f9515
Commit
653f9515
authored
May 12, 2023
by
Rostyslav Geyyer
Browse files
Format
parent
4ddb62bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+3
-3
No files found.
include/ck/utility/data_type.hpp
View file @
653f9515
...
...
@@ -1183,8 +1183,8 @@ inline __host__ __device__ f8_t fp8_convert_sr<f8_t, float>(float x)
constexpr
bool
negative_zero_nan
=
true
;
constexpr
bool
clip
=
true
;
constexpr
f8_rounding_mode
rm
=
f8_rounding_mode
::
stochastic
;
constexpr
int
seed
=
42
;
uint32_t
rng
=
prand_generator
<
float
,
seed
>
(
get_thread_global_1d_id
(),
x
);
constexpr
int
seed
=
42
;
uint32_t
rng
=
prand_generator
<
float
,
seed
>
(
get_thread_global_1d_id
(),
x
);
return
cast_to_f8
<
negative_zero_nan
,
clip
,
(
rm
==
f8_rounding_mode
::
stochastic
)
>
(
x
,
rng
);
}
...
...
@@ -1192,7 +1192,7 @@ inline __host__ __device__ f8_t fp8_convert_sr<f8_t, float>(float x)
template
<
>
inline
__host__
__device__
float
fp8_convert_sr
<
float
,
f8_t
>
(
f8_t
x
)
{
return
type_convert
<
float
>
(
x
);
return
type_convert
<
float
>
(
x
);
}
template
<
typename
T
>
...
...
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