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
86449091
Commit
86449091
authored
May 24, 2022
by
wangshaojie6
Browse files
use datatype and split k to check whether a workspace is used
parent
53f06c50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
example/20_convnd_bwd_weight_xdl/convnd_bwd_weight_xdl.cpp
example/20_convnd_bwd_weight_xdl/convnd_bwd_weight_xdl.cpp
+1
-1
No files found.
example/20_convnd_bwd_weight_xdl/convnd_bwd_weight_xdl.cpp
View file @
86449091
...
@@ -299,7 +299,7 @@ int main(int argc, char* argv[])
...
@@ -299,7 +299,7 @@ int main(int argc, char* argv[])
// alloc work space
// alloc work space
size_t
bwd_weight_workspace_size
=
conv
->
GetWorkSpaceSize
(
argument
.
get
());
size_t
bwd_weight_workspace_size
=
conv
->
GetWorkSpaceSize
(
argument
.
get
());
float
ave_time
=
0.
f
;
float
ave_time
=
0.
f
;
if
(
bwd_weight_workspace_size
>
0
)
if
(
std
::
is_same
<
InDataType
,
ck
::
bhalf_t
>::
value
&&
split_k
>
1
)
{
{
DeviceMem
wei_work_space_device_buf
(
bwd_weight_workspace_size
);
DeviceMem
wei_work_space_device_buf
(
bwd_weight_workspace_size
);
wei_work_space_device_buf
.
SetZero
();
wei_work_space_device_buf
.
SetZero
();
...
...
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