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
314d2dd7
Commit
314d2dd7
authored
Oct 22, 2024
by
Rostyslav Geyyer
Browse files
Update static_cast to type_convert
parent
fc1c938b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/include/ck/library/reference_tensor_operation/gpu/reference_gemm.hpp
...library/reference_tensor_operation/gpu/reference_gemm.hpp
+1
-1
No files found.
library/include/ck/library/reference_tensor_operation/gpu/reference_gemm.hpp
View file @
314d2dd7
...
@@ -76,7 +76,7 @@ __global__ void
...
@@ -76,7 +76,7 @@ __global__ void
// apply b_element_op
// apply b_element_op
b_element_op
(
v_b
,
p_b_grid
[
element_idx_b
]);
b_element_op
(
v_b
,
p_b_grid
[
element_idx_b
]);
// multiply and accumulate
// multiply and accumulate
v_acc
+=
static_cas
t
<
AccDataType
>
(
v_a
)
*
static_cas
t
<
AccDataType
>
(
v_b
);
v_acc
+=
type_conver
t
<
AccDataType
>
(
v_a
)
*
type_conver
t
<
AccDataType
>
(
v_b
);
}
}
// apply c_element_op
// apply c_element_op
c_element_op
(
v_c
,
v_acc
);
c_element_op
(
v_c
,
v_acc
);
...
...
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