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
c028e416
Commit
c028e416
authored
Sep 07, 2023
by
Rostyslav Geyyer
Browse files
Clean up
parent
2de38d06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+0
-2
include/ck/utility/f8_utils.hpp
include/ck/utility/f8_utils.hpp
+0
-6
No files found.
include/ck/utility/data_type.hpp
View file @
c028e416
...
...
@@ -1078,8 +1078,6 @@ struct NumericLimits<bf8_t>
template
<
typename
T
>
struct
NumericUtils
{
static
constexpr
int
exp
=
0
;
static
constexpr
int
mant
=
0
;
};
template
<
>
...
...
include/ck/utility/f8_utils.hpp
View file @
c028e416
...
...
@@ -232,9 +232,6 @@ __host__ __device__ Y cast_to_f8(X x, uint32_t rng)
constexpr
bool
is_half
=
std
::
is_same
<
X
,
half_t
>::
value
;
constexpr
bool
is_float
=
std
::
is_same
<
X
,
float
>::
value
;
static_assert
(
is_half
||
is_float
,
"Only half and float can be casted."
);
// constexpr bool is_f8 = std::is_same<Y, f8_t>::value;
// constexpr bool is_bf8 = std::is_same<Y, bf8_t>::value;
// static_assert(is_f8 || is_bf8, "Casting to f8 and bf8 only is supported.");
return
run_cast_to_f8
<
X
,
Y
,
negative_zero_nan
,
clip
,
stoch
>
(
x
,
rng
);
}
...
...
@@ -246,9 +243,6 @@ __host__ __device__ Y cast_from_f8(X x)
constexpr
bool
is_half
=
std
::
is_same
<
Y
,
half_t
>::
value
;
constexpr
bool
is_float
=
std
::
is_same
<
Y
,
float
>::
value
;
static_assert
(
is_half
||
is_float
,
"only half and float are supported."
);
// constexpr bool is_f8 = std::is_same<X, f8_t>::value;
// constexpr bool is_bf8 = std::is_same<X, bf8_t>::value;
// static_assert(is_f8 || is_bf8, "Casting to f8 and bf8 only is supported.");
return
run_cast_from_f8
<
X
,
Y
,
negative_zero_nan
>
(
x
);
}
...
...
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