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
0ad5d7f7
"tests/pipelines/kandinsky/test_kandinsky_prior.py" did not exist on "f19f1287358beb31a71bc1bf0ef680a2c6155964"
Commit
0ad5d7f7
authored
Nov 21, 2024
by
Rostyslav Geyyer
Browse files
Clean up
parent
883d9c6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+0
-1
include/ck/utility/mxfp_utils.hpp
include/ck/utility/mxfp_utils.hpp
+0
-4
No files found.
include/ck/utility/data_type.hpp
View file @
0ad5d7f7
...
...
@@ -33,7 +33,6 @@ struct f4x2_pk_t
__host__
__device__
inline
type
unpack
(
const
size_t
index
)
{
// if (index == 0) return (data << 4) >> 4;
if
(
index
==
0
)
return
data
&
0b00001111
;
return
(
data
>>
4
);
...
...
include/ck/utility/mxfp_utils.hpp
View file @
0ad5d7f7
...
...
@@ -153,7 +153,6 @@ inline T convert_to_type(float value)
}
const
int
mfmt
=
NumericUtils
<
float
>::
mant
;
uint32_t
x
;
// x = reinterpret_cast<uint32_t&>(value);
x
=
bit_cast
<
uint32_t
>
(
value
);
uint32_t
head
,
mantissa
;
...
...
@@ -256,8 +255,6 @@ inline T convert_to_type(float value)
template
<
typename
T
>
inline
T
convert_to_type_sr
(
float
value
,
uint32_t
seed
)
{
// using bitwise_type = typename NumericUtils<T>::bitwise_type;
if
(
std
::
abs
(
value
)
>
NumericLimits
<
T
>::
Max
())
{
float
max_value
=
NumericLimits
<
T
>::
Max
();
...
...
@@ -323,7 +320,6 @@ inline T convert_to_type_sr(float value, uint32_t seed)
}
}
// uint32_t f32 = reinterpret_cast<uint32_t&>(value);
uint32_t
f32
=
bit_cast
<
uint32_t
>
(
value
);
auto
f32_mant
=
f32
&
NumericUtils
<
float
>::
mant_mask
;
...
...
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