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
698f3a3e
"examples/vscode:/vscode.git/clone" did not exist on "fed12376c5c6dda416f7408aec69e242f227c810"
Commit
698f3a3e
authored
Jul 01, 2022
by
Chao Liu
Browse files
update example
parent
96f3935c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
example/02_gemm_alpha_beta/CMakeLists.txt
example/02_gemm_alpha_beta/CMakeLists.txt
+1
-1
example/02_gemm_alpha_beta/gemm_alpha_beta_xdl_fp16.cpp
example/02_gemm_alpha_beta/gemm_alpha_beta_xdl_fp16.cpp
+1
-1
No files found.
example/02_gemm_alpha_beta/CMakeLists.txt
View file @
698f3a3e
add_example_executable
(
example_gemm_
xdl_
alpha_beta gemm_
xdl_
alpha_beta.cpp
)
add_example_executable
(
example_gemm_alpha_beta
_xdl_fp16
gemm_alpha_beta
_xdl_fp16
.cpp
)
example/02_gemm_alpha_beta/gemm_
xdl_
alpha_beta.cpp
→
example/02_gemm_alpha_beta/gemm_alpha_beta
_xdl_fp16
.cpp
View file @
698f3a3e
...
@@ -28,7 +28,7 @@ struct AlphaBetaAdd
...
@@ -28,7 +28,7 @@ struct AlphaBetaAdd
__host__
__device__
constexpr
void
operator
()
<
ck
::
half_t
,
float
,
ck
::
half_t
>
(
__host__
__device__
constexpr
void
operator
()
<
ck
::
half_t
,
float
,
ck
::
half_t
>
(
ck
::
half_t
&
e
,
const
float
&
c
,
const
ck
::
half_t
&
d
)
const
ck
::
half_t
&
e
,
const
float
&
c
,
const
ck
::
half_t
&
d
)
const
{
{
e
=
ck
::
type_convert
<
ck
::
half_t
>
(
alpha_
*
c
;
beta_
*
ck
::
type_convert
<
float
>
(
d
));
e
=
ck
::
type_convert
<
ck
::
half_t
>
(
alpha_
*
c
+
beta_
*
ck
::
type_convert
<
float
>
(
d
));
};
};
float
alpha_
;
float
alpha_
;
...
...
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