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
a0d36aea
Commit
a0d36aea
authored
Nov 17, 2023
by
Max Podkorytov
Browse files
delegate bhalf2 case to bhalf inner product
parent
d6557188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/ck/utility/inner_product.hpp
include/ck/utility/inner_product.hpp
+3
-2
No files found.
include/ck/utility/inner_product.hpp
View file @
a0d36aea
...
...
@@ -91,8 +91,9 @@ __device__ void inner_product<bhalf2_t, bhalf2_t, float>(const bhalf2_t& a, cons
const
vector_type
<
bhalf_t
,
2
>
b_vector
{
b
};
static_for
<
0
,
2
,
1
>
{}([
&
](
auto
i
)
{
c
+=
type_convert
<
float
>
(
a_vector
.
AsType
<
bhalf_t
>
()[
i
])
*
type_convert
<
float
>
(
b_vector
.
AsType
<
bhalf_t
>
()[
i
]);
inner_product
(
a_vector
.
AsType
<
bhalf_t
>
()[
i
],
b_vector
.
AsType
<
bhalf_t
>
()[
i
],
c
);
});
}
...
...
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