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
5aff1a05
Commit
5aff1a05
authored
Apr 04, 2023
by
fsx950223
Browse files
move uint16x2_t to function body
parent
a61aa740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+5
-5
No files found.
include/ck/utility/data_type.hpp
View file @
5aff1a05
...
...
@@ -965,14 +965,14 @@ inline __host__ __device__ constexpr float type_convert<float, bhalf_t>(bhalf_t
}
// convert fp32 to bfp16
struct
uint16x2_t
{
ushort
x
;
ushort
y
;
};
template
<
>
inline
__host__
__device__
constexpr
bhalf_t
type_convert
<
bhalf_t
,
float
>
(
float
x
)
{
struct
uint16x2_t
{
ushort
x
;
ushort
y
;
};
union
{
float
fp32
;
...
...
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