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
cf2490e0
"...composable_kernel_rocm.git" did not exist on "f57d720c67123b43cb6f18f4b8b5aa0c7c9f51ba"
Commit
cf2490e0
authored
Mar 29, 2023
by
fsx950223
Browse files
fix name
parent
db5310b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+2
-2
No files found.
include/ck/utility/data_type.hpp
View file @
cf2490e0
...
@@ -965,7 +965,7 @@ inline __host__ __device__ constexpr float type_convert<float, bhalf_t>(bhalf_t
...
@@ -965,7 +965,7 @@ inline __host__ __device__ constexpr float type_convert<float, bhalf_t>(bhalf_t
}
}
// convert fp32 to bfp16
// convert fp32 to bfp16
struct
uint16_t
_2
{
struct
uint16
x2
_t
{
ushort
x
;
ushort
x
;
ushort
y
;
ushort
y
;
};
};
...
@@ -976,7 +976,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, float>(float
...
@@ -976,7 +976,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, float>(float
union
union
{
{
float
fp32
;
float
fp32
;
uint16_t
_2
int32
;
uint16
x2
_t
int32
;
}
u
=
{
x
};
}
u
=
{
x
};
return
u
.
int32
.
y
+
((
u
.
int32
.
x
&
0x8000
)
>>
15
);
return
u
.
int32
.
y
+
((
u
.
int32
.
x
&
0x8000
)
>>
15
);
...
...
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